Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ytfzf
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ video_player() {
[ "$is_detach" -eq 1 ] && use_detach_cmd=detach_cmd || use_detach_cmd=''
# shellcheck disable=SC2086
unset IFS
$use_detach_cmd mpv --ytdl-format="$ytdl_pref" $(eval echo "$url_handler_opts") "$@"
$use_detach_cmd mpv $(eval echo "$url_handler_opts") "$@"
}

audio_player() {
Expand All @@ -1224,8 +1224,8 @@ audio_player() {
# shellcheck disable=SC2086
unset IFS
case "$is_detach" in
0) mpv --no-video --ytdl-format="$ytdl_pref" $(eval echo "$url_handler_opts") "$@" ;;
1) detach_cmd mpv --force-window --no-video --ytdl-format="$ytdl_pref" $(eval echo "$url_handler_opts") "$@" ;;
0) mpv --no-video $(eval echo "$url_handler_opts") "$@" ;;
1) detach_cmd mpv --force-window --no-video $(eval echo "$url_handler_opts") "$@" ;;
esac
}

Expand Down