From 2a2a8392fee0238b3db0f9723f752a692d667988 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin <win10@list.ru> Date: Thu, 24 Sep 2020 07:58:36 +0400 Subject: [PATCH] Fixed playlist ordering. Signed-off-by: Pavel Kirilin <win10@list.ru> --- assets/scripts/playerctl_loader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/playerctl_loader.sh b/assets/scripts/playerctl_loader.sh index ab51ed9..24209ba 100644 --- a/assets/scripts/playerctl_loader.sh +++ b/assets/scripts/playerctl_loader.sh @@ -22,7 +22,7 @@ function player(){ function cleanup_and_exit() { if [[ "$job_started" = "1" ]];then rm -fv "current.mp3" "bg.png" "cover.jpg" "cover.png" - find . -name '*.webm' -exec basename {} \; | xargs -I {} echo "file '{}'" > concat + find . -name '*.webm' -exec basename {} \; | sort --numeric-sort | xargs -I {} echo "file '{}'" > concat ffmpeg -f concat -i concat -c copy "compiled-$((compiled_index + 1)).webm" rm -fv "concat" popd || exit -- GitLab