]> git.phdru.name Git - dotfiles.git/commitdiff
Fix(.mc/menu): Left random playlist in the current directory
authorOleg Broytman <phd@phdru.name>
Sat, 30 Jan 2021 19:51:03 +0000 (22:51 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 30 Jan 2021 19:51:03 +0000 (22:51 +0300)
Files in playlists have relative paths.

.mc/menu

index 393bf298c5a2c8f840ce19bdbcb30741a637df31..acb6b51acf4fbb5c7ef7d181a6f71c405c7e95ce 100644 (file)
--- 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