mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
make videos open in background in play from file
This commit is contained in:
parent
c6d5c6a1bd
commit
b272fc3994
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 $?
|
||||||
|
Loading…
Reference in New Issue
Block a user