E56F
Skip to content

[utils]download_range_func: Update __eq__ and __repr__ to include from_info#16393

Open
atsushi2965 wants to merge 2 commits intoyt-dlp:masterfrom
atsushi2965:patch-2
Open

[utils]download_range_func: Update __eq__ and __repr__ to include from_info#16393
atsushi2965 wants to merge 2 commits intoyt-dlp:masterfrom
atsushi2965:patch-2

Conversation

@atsushi2965
Copy link
Copy Markdown
Member

Description of your pull request and other information

Corrects the lines that I suppose was missed in the fix at b4e0d75

cli_to_api.py at present doesn't support --download-sections *from-url.

> python cli_to_api.py --download-sections *from-url

The arguments passed translate to:

{}

This fix resolves it.

> python devscripts\cli_to_api.py --download-sections *from-url

The arguments passed translate to:

{'download_ranges': yt_dlp.utils.download_range_func([], [], from_info=True)}
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:

  • Core bug fix/improvement

Include 'from_info' in the string representation of the class.
Enhance equality check and representation for download_range_func.
@doe1080 doe1080 added the bug Bug that is not site-specific label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug that is not site-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0