yt-dlp: Multiple tweaks - #23
Merged
Merged
Conversation
Allows using "ytdlp" URI scheme to try to extract ANY site with yt-dlp. We probably cannot test all 1800+ sites that yt-dlp supports, so lets keep support for "https" with "X-Hosts" data for the ones that were tested, thus will be picked automatically without URI changes. The rest will be as a "try and see if it works" with "ytdlp" scheme. Once some fequently used site is confirmed to work, PRs for adding it to "X-Hosts" are welcome.
In case of yt-dlp we might get different headers for video and audio track. Also, with non-adaptive content, single headers might be placed inside info root. The best way to handle all that is probably to merge all headers from requested formats/downloads and info root, then just add them to harvest.
Rafostar
force-pushed
the
ytdlp-tweaks
branch
2 times, most recently
from
August 12, 2025 21:09
be427a6 to
5869d9e
Compare
Make our own debug logger as a means to workaround lack of ability in yt-dlp to cancel media extraction. Do this by checking cancellable each time before printing debug message. Since URI tests print multiple times while single chunk is being downloaded, it should allow to cancel extraction in the middle of download too.
Instead of object init, create ytdl instance in extract. We do not use it in playlistable interface, so no need to create and init it when parsing playlist.
Allow users and applications to manually configure yt-dlp extractor arguments. Uses the same syntax as yt-dlp command line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.