-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Better extraction for nrk #25751
Better extraction for nrk #25751
Conversation
Get content of meta tag Inspired by, and closes #25594
Can't see why the original method don't work for some streams. Bonus: provides 1080p quality Closes #24221
This is what I consider the actual title
Prevents some long-running series from returning `NA`
It does not need to be in the loop, introduces some duplicated parts of code
4fba230
to
10664e4
Compare
|
||
dur = parse_duration(playback_convia.get('duration')) | ||
subs = {} | ||
for sub_title in playback_manifest.get('playable').get('subtitles'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
@@ -427,7 +464,8 @@ def _real_extract(self, url): | |||
|
|||
nrk_id = self._parse_json( | |||
self._search_regex(JSON_LD_RE, webpage, 'JSON-LD', group='json_ld'), | |||
display_id)['@id'] | |||
display_id).get('@id') or \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the lack of fallback?
|
5e26784
to
da2069f
Compare
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])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:
What is the purpose of your pull request?
Description of your pull request and other information
This fixes two open issues for the NRK extractor, #25594 and #24221 as well as providing
alt_title
, useful for shows that does indeed have unique episode names, rather than<series name> <episode number>:<total episodes in season>
In order to fully fix 24221 I had to use a additional endpoint to fetch a m3u8 playlist, this seems to be the endpoint which exposes 1080P quality.
Some test maintenance was also done, the description seems to change from time to time.