trizen / pipe-viewer

A lightweight YouTube client for Linux, without requiring an API key.
Artistic License 2.0
398 stars 19 forks source link

[FEATURE] option to not extract video link #204

Open pirate486743186 opened 2 months ago

pirate486743186 commented 2 months ago

in order to use sponsorblock you need to use the native video link extraction for mpv. But this means the link is extracted twice and this can take quite a while. So it would be nice to be able to just disable link extraction and shave some time. Downloading should still work though.

trizen commented 2 months ago

It may not work, as the special tokens require data from streaming URLs.

As a workaround, see: https://github.com/trizen/pipe-viewer/issues/13#issuecomment-1238713964

pirate486743186 commented 2 months ago

special token for what?

trizen commented 2 months ago

For *SUB*, *ITAG*, *RESOLUTION*, in WWW::PipeViewer::Utils::format_text(): https://github.com/trizen/pipe-viewer/blob/main/lib/WWW/PipeViewer/Utils.pm#L363

pirate486743186 commented 2 months ago

In this context info, subs and resolution are not needed.

If you just press enter, it would just launch the mpv command in a thread without extra steps. If you try to open the info page or use the cli version, then yea, it will need to get the stuff it needs.