From 931459674086ef806b22ad44708acc214697fc1b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 30 Jan 2021 22:51:03 +0300 Subject: [PATCH] Fix(.mc/menu): Left random playlist in the current directory Files in playlists have relative paths. --- .mc/menu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.mc/menu b/.mc/menu index 393bf29..acb6b51 100644 --- a/.mc/menu +++ b/.mc/menu @@ -166,16 +166,16 @@ P Play the audiofile(s) or playlist(s) + t lr & f \.m3u R Play the playlist in random order - "$HOME"/admin/prog/audio-cdr-video/audio/shuffle-playlist.py %f /tmp/random-playlist-tmp.m3u + "$HOME"/admin/prog/audio-cdr-video/audio/shuffle-playlist.py %f random-playlist-tmp.m3u if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi audtool --playlist-clear while read song; do audtool --playlist-addurl "$song" - done < /tmp/random-playlist-tmp.m3u + done < random-playlist-tmp.m3u audtool --playback-play #mplayer -playlist random-playlist-tmp.m3u & #deadbeef --queue random-playlist-tmp.m3u & deadbeef --play - (sleep 5; exec rm /tmp/random-playlist-tmp.m3u) & + (sleep 5; exec rm random-playlist-tmp.m3u) & + t lr & f \.(m3u|mp3|MP3|cue|aac|ac3|ape|dts|flac|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ i Audio/video info -- 2.39.5