mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2025-12-06 02:53:37 -08:00
make videos open in background in play from file
This commit is contained in:
6
ani-cli
6
ani-cli
@@ -324,13 +324,13 @@ play_file() {
|
|||||||
notification "Playing $1"
|
notification "Playing $1"
|
||||||
case "$PLAYER_FN" in
|
case "$PLAYER_FN" in
|
||||||
mpv)
|
mpv)
|
||||||
nohup "$PLAYER_FN" --force-media-title="aniwrapper: play-from-file - $1" "$1" > /dev/null 2>&1
|
nohup "$PLAYER_FN" --force-media-title="aniwrapper: play-from-file - $1" "$1" > /dev/null 2>&1 &
|
||||||
;;
|
;;
|
||||||
mplayer)
|
mplayer)
|
||||||
nohup "$PLAYER_FN" -title "aniwrapper: play-from-file - $1" "$1" > /dev/null 2>&1
|
nohup "$PLAYER_FN" -title "aniwrapper: play-from-file - $1" "$1" > /dev/null 2>&1 &
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
nohup "$PLAYER_FN" "$1" > /dev/null 2>&1
|
nohup "$PLAYER_FN" "$1" > /dev/null 2>&1 &
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
return $?
|
return $?
|
||||||
|
|||||||
Reference in New Issue
Block a user