Skip to content

[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

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

Conversation

doe1080
Copy link
Collaborator

@doe1080 doe1080 commented May 20, 2025

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:

  • I am the original author of the code in this PR, and I am willing to release it under Unlicense
  • I am not the original author of the code in this PR, but it is in the public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request? Check those that apply and remove the others:

@bashonly bashonly added the site-bug Issue with a specific website label May 20, 2025
@bashonly bashonly added the pending-fixes PR has had changes requested label May 27, 2025
@doe1080 doe1080 requested a review from bashonly May 27, 2025 13:38
@doe1080 doe1080 marked this pull request as draft May 27, 2025 16:49
@doe1080 doe1080 marked this pull request as ready for review June 6, 2025 05:24
@doe1080
Copy link
Collaborator Author

doe1080 commented Jul 26, 2025

if width is known and height unknown, should RESOLUTION be like 1280x? or unknown?

@seproDev
Copy link
Collaborator

1280x?. Core code should take care of that.

Comment on lines +101 to +104
}
if not height:
fmt['width'] = None
formats.append(fmt)
Copy link
Collaborator

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

Suggested change
}
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 = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could even inline this

Suggested change
height = self._QUALITIES.get(format_id)

fmt = {
'ext': 'm4v',
'format_id': format_id,
'height': height,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
'height': height,
'height': self._QUALITIES.get(format_id),

@seproDev seproDev self-assigned this Jul 27, 2025
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-bug Issue with a specific website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants