summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-04-18 09:32:38 +0200
committerlassulus <lassulus@lassul.us>2020-04-18 09:32:38 +0200
commit8772a311a82040c187a04df3f5393c3083780db8 (patch)
treeea041aea24f74a42e626b83ce391288b79749d81 /lass
parent0715c3cba9fa860c49be1f665b5c7d4470e4098d (diff)
l radio: filter other music out
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/radio.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index c4c4b0abb..60659d043 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -12,7 +12,7 @@ let
music_dir = "/home/radio/music";
add_random = pkgs.writeDashBin "add_random" ''
- ${pkgs.mpc_cli}/bin/mpc add "$(${pkgs.findutils}/bin/find "${music_dir}/the_playlist" | grep '\.ogg$' | shuf -n1 | sed 's,${music_dir}/,,')"
+ ${pkgs.mpc_cli}/bin/mpc add "$(${pkgs.findutils}/bin/find "${music_dir}/the_playlist" | grep -v '/other/' | grep '\.ogg$' | shuf -n1 | sed 's,${music_dir}/,,')"
'';
skip_track = pkgs.writeBashBin "skip_track" ''