Skip to content
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

Changing default download app #6

Open
Kritiqual opened this issue Dec 9, 2021 · 2 comments
Open

Changing default download app #6

Kritiqual opened this issue Dec 9, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Kritiqual
Copy link

Hi, I recently found your repo, I tried it, but the youtube-dl is kinda slow, and I want to change it to another app (e.g yt-dlp). Can I do that?

@minamotorin
Copy link
Owner

Hi. Thanks for your feedback!
It is a problem that the user can't change the key bindings and behavior of fzf.

I know about problem of youtube-dl and I'm just using yt-dlp now.
You can use yt-dlp by replacing mpv with mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp.

I added some environmental variables (version 1.5), and $YOUTUBE_FZF_VIDEOS can be used for this as follows.

export YOUTUBE_FZF_VIDEOS="--bind ctrl-w:'execute(mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp \"\$( echo {} | sed "\"'s/{\"//; s/\".*//'\"")\")'"

By the way, I think using configuration files of mpv player (e.g. ~/.config/mpv/mpv.conf) is better if you always use yt-dlp.
Example of mpv.conf is as follows.

script-opts=ytdl_hook-ytdl_path=yt-dlp

@minamotorin minamotorin added the enhancement New feature or request label Dec 9, 2021
@minamotorin
Copy link
Owner

youtube-dl has revived!

ytdl-org/youtube-dl#30568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants