Skip to content

Lorem ipsum dolor sit amet #722

Answered by Euro20179
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Even if I create script directly in /usr/bin/yt-dlp_to_mpv with yt-dlp -o - $1 | mpv -, and add video_player="yt-dlp_to_mpv" to my ~/.config/ytfzf/conf.sh

overriding video player this way doesn't work, you have one of 2 options
either put

video_player () {
    yt-dlp -o - $1 | mpv -
}

or

load_url_handler "/usr/bin/yt-dlp_to_mpv"

in your ytfzf config

The difference in this situation is minor, but basically video_player is used by the builtin url handler, whereas load_url_handler will override the builtin url handler

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant