bugfix: play and queue
This commit is contained in:
@@ -96,9 +96,9 @@ if [ "${1:-}" = "--play-release" ]; then
|
||||
sort_by([.pos, .number]) |
|
||||
map($base + "/" + .file)[]' >"$tmplist"
|
||||
if [ "${4:-}" ]; then
|
||||
mpv_play_list "$tmplist"
|
||||
else
|
||||
mpv_queue_list "$tmplist"
|
||||
else
|
||||
mpv_play_list "$tmplist"
|
||||
fi
|
||||
rm -f "$tmplist"
|
||||
exit 0
|
||||
@@ -106,11 +106,10 @@ fi
|
||||
|
||||
if [ "${1:-}" = "--play-recording" ]; then
|
||||
echo "Playing recording $2" >>/tmp/foo
|
||||
mpv_play_file "$2"
|
||||
if [ "${3:-}" ]; then
|
||||
mpv_play_file "$2"
|
||||
else
|
||||
mpv_queue_file "$2"
|
||||
else
|
||||
mpv_play_file "$2"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
Reference in New Issue
Block a user