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