diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2024-06-19 10:10:16 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2024-06-21 10:42:36 +0200 |
commit | 1ce989e2da7d00b825097cd5cf5aec5273a7ba5b (patch) | |
tree | e7655d36590af17851c0b337a315e7bf78d2fad3 /local | |
parent | fc118fb485ed6e5db1c820a74497ad83859976df (diff) |
Diffstat (limited to 'local')
-rwxr-xr-x | local/mpd_playlist.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/local/mpd_playlist.sh b/local/mpd_playlist.sh index 96b1df4..a82b961 100755 --- a/local/mpd_playlist.sh +++ b/local/mpd_playlist.sh @@ -11,6 +11,11 @@ update_playlist () { mpc clear } -update_playlist "Transe fip Express" "https://radiofrance-podcast.net/podcast09/rss_23649.xml" -update_playlist "Fip Tape" "https://radiofrance-podcast.net/podcast09/rss_24684.xml" -update_playlist "Live à Fip" "https://radiofrance-podcast.net/podcast09/rss_13416.xml" +case $(mpc status "%state%") in + stopped|paused) + update_playlist "Transe fip Express" "https://radiofrance-podcast.net/podcast09/rss_23649.xml" + update_playlist "Fip Tape" "https://radiofrance-podcast.net/podcast09/rss_24684.xml" + update_playlist "Live à Fip" "https://radiofrance-podcast.net/podcast09/rss_13416.xml" + ;; + *) +esac |