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

feat(ADN): Add German variant and season downloads #8708

Merged
merged 16 commits into from Jan 19, 2024

Conversation

infanf
Copy link
Contributor

@infanf infanf commented Dec 3, 2023

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Add support for the newly launched German site. The German site is accessible from DE, AT, CH, LI, LU under animationdigitalnetwork.de (instead of .fr). Backend API is the same as on the French site.

German site provides German subtitles and dubs (currently none available).

And while I'm at it, might as well add season download support as requested in #6643

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • 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?

yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
Comment on lines 53 to 60
'url': 'https://animationdigitalnetwork.de/video/tokyo-mew-mew-new/19818-folge-1',
'info_dict': {
'id': '19818',
'ext': 'mp4',
'episode_number': 1,
'duration': 1429,
},
'skip': 'Only available in region (FR, ...)',
Copy link
Member

Choose a reason for hiding this comment

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

Try running the test locally after commenting out skip

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently the test fails even when running it from Germany. The German site is still under contrsuction and some stream variants (namely mobile and sd quality) are not yet available. This leads to a runtime error. I'll try again from time to time and adjust the test accordingly.

yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
test is not yet working due to the German site still being under construction
@infanf
Copy link
Contributor Author

infanf commented Dec 3, 2023

The German site is still under contrsuction and some stream variants (namely mobile and sd quality) are not yet available. Will keep this as a draft until the German site is working.

@seproDev seproDev added the site-enhancement Feature request for some website label Dec 4, 2023
@infanf infanf changed the title feat: add German ADN feat(ADN): Add German variant and season downloads Dec 5, 2023
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
@bashonly bashonly self-requested a review December 6, 2023 18:52
@infanf
Copy link
Contributor Author

infanf commented Dec 7, 2023

German site is still in beta, but it works now (at least for some episodes). This means I was able to successfully run the tests locally.

@infanf infanf marked this pull request as ready for review December 7, 2023 09:44
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
@seproDev seproDev added the pending-fixes PR has had changes requested label Jan 15, 2024
use f-strings
add headers to all requests
move language to url regex

resolves yt-dlp#8945
resolves yt-dlp#6643
Copy link
Collaborator

@seproDev seproDev left a comment

Choose a reason for hiding this comment

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

For the future, please don't force push.

yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
@seproDev seproDev added pending-review PR needs a review and removed pending-fixes PR has had changes requested labels Jan 15, 2024
@pukkandan pukkandan removed their request for review January 18, 2024 02:47
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
yt_dlp/extractor/adn.py Outdated Show resolved Hide resolved
@bashonly bashonly removed the pending-review PR needs a review label Jan 19, 2024
@seproDev seproDev merged commit 5eb1458 into yt-dlp:master Jan 19, 2024
6 checks passed
@infanf infanf deleted the feat/adn-de branch January 22, 2024 11:22
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
- Add extractor for seasons

Closes yt-dlp#6643, Closes yt-dlp#8945
Authored by: infanf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants