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

[ADN] Fix #27732

Merged
merged 1 commit into from
Jan 12, 2021
Merged

[ADN] Fix #27732

merged 1 commit into from
Jan 12, 2021

Conversation

adrianheine
Copy link
Contributor

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

Closes #26963. The extractor doesn't work at all currently.

Copy link
Collaborator

@remitamine remitamine left a comment

Choose a reason for hiding this comment

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

does this fix only related to downloading the video, or does it fix subtitles downloading as well?

youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
if links_data is None:
raise ExtractorError('Giving up retrying')

if links_data.get('code') == 'player-bad-geolocation-country':
Copy link
Collaborator

Choose a reason for hiding this comment

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

add an only_matching test for this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Afaik everything's not available in Germany. Definitely the existing _TEST.

youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
@adrianheine
Copy link
Contributor Author

Thanks for the thorough review! This does not address the subtitles situation.

youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
youtube_dl/extractor/adn.py Outdated Show resolved Hide resolved
@MrTechyyy
Copy link

#27841

ThirumalaiK pushed a commit to ThirumalaiK/youtube-dl that referenced this pull request Jan 28, 2021
@remitamine
Copy link
Collaborator

Do you want to be credited as one of the authors of youtube-dl? If so under what name?

@adrianheine
Copy link
Contributor Author

Sure, thank you :) That would be »Adrian Heine«.

remitamine added a commit that referenced this pull request Feb 2, 2021
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.

[ADN] ERROR: Unable to extract config URL
3 participants