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/twitch] Storyboards for Twitch VODs #4342

Merged
merged 8 commits into from
Jul 12, 2022

Conversation

ftk
Copy link
Contributor

@ftk ftk commented Jul 12, 2022

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?

Description of your pull request and other information

Added storyboard formats to twitch VoDs, similar to youtube storyboards.
Extractor does 1 more JSON request.

Also fixed a few tests.

Comment on lines 442 to 443
# sort from highest quality to lowest
spec.sort(key=lambda x: int_or_none(x.get('width')) or 0, reverse=True)
Copy link
Member

Choose a reason for hiding this comment

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

No need to sort. Core code should handle it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then sb1 will(might) be lower quality than sb0. I'd rather it be consistent with youtube (sb0 - highest quality, sb1 - lower, etc)

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense. Could u explain that in the comment coz the intention is not obvious

yt_dlp/extractor/twitch.py Outdated Show resolved Hide resolved
yt_dlp/extractor/twitch.py Outdated Show resolved Hide resolved
yt_dlp/extractor/twitch.py Outdated Show resolved Hide resolved
@pukkandan pukkandan added site-enhancement Feature request for some website pending-fixes PR has had changes requested labels Jul 12, 2022
@pukkandan pukkandan merged commit 418bbfd into yt-dlp:master Jul 12, 2022
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-enhancement Feature request for some website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants