-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[ie/appleconnect] Rework extractor #13229
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
base: master
Are you sure you want to change the base?
Conversation
if |
|
} | ||
if not height: | ||
fmt['width'] = None | ||
formats.append(fmt) |
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.
So we don't need to remove the width
} | |
if not height: | |
fmt['width'] = None | |
formats.append(fmt) | |
}) |
'assetTokens', {dict.items}, lambda _, v: url_or_none(v[1]), | ||
)): | ||
height = self._QUALITIES.get(format_id) | ||
fmt = { |
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.
fmt = { | |
formats.append({ |
for format_id, src_url in traverse_obj(attributes, ( | ||
'assetTokens', {dict.items}, lambda _, v: url_or_none(v[1]), | ||
)): | ||
height = self._QUALITIES.get(format_id) |
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.
Could even inline this
height = self._QUALITIES.get(format_id) |
fmt = { | ||
'ext': 'm4v', | ||
'format_id': format_id, | ||
'height': height, |
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.
'height': height, | |
'height': self._QUALITIES.get(format_id), |
Description of your pull request and other information
simple broken IE rework (not marked as
_WORKING = False
)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 those that apply and remove the others:
What is the purpose of your pull request? Check those that apply and remove the others: