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

[on.orf.at] better/more data parsing #9677

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

TuxCoder
Copy link

@TuxCoder TuxCoder commented Apr 12, 2024

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

  • add better DRM detection: ref: on.orf.at not complete DRM detection #9652
  • add parsing of the v4.3 api for subtitles
  • better url parsing
    example for 7 digits: https://on.orf.at/video/3229173
  • better tests
    the new test data has killdate: None as attribute, so this should be more stable for the future
    sadly I did't found any video with age restriction and right: "worldwide" only with restriction to Austria and/or with a killdate < 2025, IMHO not worth to add as will create future problem
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?

Open Questions:

  • I did't get the other subtitles formats working 'xml', 'srt', 'sami', 'ttml', 'stl' that are available so I comment them out
  • should display_id be remove?! as it is not included with all urls from on.orf.at

As this is my first PR to yt-dlp I hope I didn't oversaw anything from the good written guidelines.
If so feel free to point that out.

tuxcoder added 5 commits April 12, 2024 23:14
use the linked subtitles in the v4.3 api
some urls are without slug
also some video-Id's are shorter that 8 digits
and could probably be bigger than 8
some videos formats are not reported as DRM protected
fixes: yt-dlp#9652
this test file has no kill_date,
so I hope it will be online for longer
old one would be not available after "2024-08-12T21:05:00+02:00"
@seproDev seproDev added site-enhancement Feature request for some website site-bug Issue with a specific website labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website site-enhancement Feature request for some website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants