Skip to content

yt-dlp: Multiple tweaks - #23

Merged
Rafostar merged 8 commits into
mainfrom
ytdlp-tweaks
Sep 24, 2025
Merged

yt-dlp: Multiple tweaks#23
Rafostar merged 8 commits into
mainfrom
ytdlp-tweaks

Conversation

@Rafostar

@Rafostar Rafostar commented Aug 6, 2025

Copy link
Copy Markdown
Owner

No description provided.

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
Rafostar force-pushed the ytdlp-tweaks branch 2 times, most recently from be427a6 to 5869d9e Compare August 12, 2025 21:09
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.
@Rafostar
Rafostar merged commit 02376fb into main Sep 24, 2025
3 checks passed
@Rafostar
Rafostar deleted the ytdlp-tweaks branch December 5, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant