-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[ie/orf:on] Support segmented episodes #10053
Conversation
return traverse_obj(api_json, { | ||
'id': ('id', {int}, {str_or_none}), | ||
'age_limit': ('age_classification', {parse_age_limit}), | ||
'duration': ('exact_duration', {functools.partial(float_or_none, scale=1000)}), |
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.
Surely a sensible set of short names for functools
expressions like these can be agreed by now?
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.
No decision has been made yet. It will be a task of 5 minutes to clean up all instances once a helper method is added.
- Not a segmented episode: return single video - Segmented episode without valid segment id: return entire playlist - Segmented episode with valid segment id and yes-playlist: return entire playlist - Segmented episode with valid segment id and no-playlist: return single video corresponding to segment id In case a multi_video playlist is supposed to be returned, but an unsegmented source exists, that source is chosen instead.
IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information
Fixes #9930
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:
What is the purpose of your pull request?