Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS Cipher Workaround #234

Merged
merged 1 commit into from
Sep 11, 2024
Merged

TLS Cipher Workaround #234

merged 1 commit into from
Sep 11, 2024

Conversation

kjake
Copy link
Contributor

@kjake kjake commented Aug 27, 2024

- Implements manual TLS cipher selection to workaround a server-side configuration issue with bandcamp.com
- Used sample code from urllib3/urllib3#3439 (comment) - thanks to @pquentin!

Co-Authored-By: Quentin Pradet <42327+pquentin@users.noreply.github.com>
@Evolution0
Copy link
Collaborator

Figured it was something oddball, every time I've ran into a major issue that couldn't be fixed debugging bandcamp-dl itself its always been library related smh

else:
urls = arguments.URL

album_list = []

for url in urls:
if "/album/" not in url and "/track/" not in url:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reasoning for this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see this is related to #233 and just got carried over.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my testing the urls list often (always?) contains a top-level url of the artist without any albums or tracks, and is the first in the list, causing bandcamp-dl to immediately fail.

This could potentially be fixed in get_full_discography(), but I'm not that good at python.

@@ -86,7 +86,6 @@ def main():
logger = logging.getLogger(logging_handle)

# TODO: Its possible to break bandcamp-dl temporarily by simply erasing a line in the config, catch this and warn.
arguments = config.init_config(parser)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You remove config initializing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

init_config() was removed by #229 and bandcamp-dl would no longer run for me unless I removed that line.

Copy link
Collaborator

@Evolution0 Evolution0 Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the merge for that PR did not go properly considering its still there, hopefully nothing else slipped through.

EDIT: Ah I see, they removed the function but did not seem to remove the call to it oddly enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, and my change resolved #232 for me. No idea if something else is broken because of the changes the other PR made though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants