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

[extractor/Dumpert] Fix videos downloading as m3u8 files and added new-style valid URLs #6091

Merged
merged 4 commits into from Jun 11, 2023

Conversation

DataGhost
Copy link
Contributor

Imported youtube-dl upstream PR#30985 and removed the deprecated parts

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Dumpert has changed playout to HLS a while ago (months or even over a year) which causes all videos since that change to download as .m3u8 files actually containing mp4 data. Older videos are unaffected, that's why the test never failed. Additionally, the site has received a new layout with some new possible URLs a while ago, those should now work as well.

The manifests seem to be single-quality and basically just contain a single mp4 each, last time I checked. It's downloading correctly this way for me anyway.

This PR was previously made on youtube-dl#30985 and I think it was good to go but the project went mostly inactive and it hasn't been merged to date. So I merged it into a yt-dlp repo, making sure the previously cleaned-up deprecated stuff stayed cleaned-up.

Fixes #5032

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

Imported youtube-dl upstream PR#30985 and removed the deprecated parts
yt_dlp/extractor/dumpert.py Outdated Show resolved Hide resolved
int_or_none,
qualities,
)


class DumpertIE(InfoExtractor):
_VALID_URL = r'(?P<protocol>https?)://(?:(?:www|legacy)\.)?dumpert\.nl/(?:mediabase|embed|item)/(?P<id>[0-9]+[/_][0-9a-zA-Z]+)'
_VALID_URL = r'(?P<protocol>https?)://(?:(?:www|legacy)\.)?dumpert\.nl(?:/(?:mediabase|embed|item)/|(?:/toppers|/latest|/?)\?selectedId=)(?P<id>[0-9]+[/_][0-9a-zA-Z]+)'
Copy link
Member

Choose a reason for hiding this comment

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

This's gotten complicated. Can you split it into multiple lines?

@pukkandan pukkandan added site-bug Issue with a specific website pending-fixes PR has had changes requested labels Feb 12, 2023
@pukkandan pukkandan force-pushed the master branch 2 times, most recently from ee280c7 to 7aeda6c Compare May 24, 2023 18:09
@gamer191 gamer191 added the stale-pr PR that has been pending fixes for a long time label Jun 11, 2023
@pukkandan pukkandan merged commit f8ae441 into yt-dlp:master Jun 11, 2023
11 checks passed
@mikf mikf mentioned this pull request Jun 19, 2023
9 tasks
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-fixes PR has had changes requested site-bug Issue with a specific website stale-pr PR that has been pending fixes for a long time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dumpert.nl
3 participants