summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-05-25 20:57:08 +0200
committerlassulus <lass@aidsballs.de>2016-05-25 20:57:08 +0200
commit39be633cf42aaaa4f8a6a992fd3af4e139ab8917 (patch)
tree63cc085b4715c44e0f1f52d2630ca775a8df6060 /lass
parentb78cafa686a4e01f815f75d1c815996e54fa4597 (diff)
l 2 radio print_current: show youtube link
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/radio.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index 2d1596e3d..17be327b9 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -21,7 +21,9 @@ let
'';
print_current = pkgs.writeDashBin "print_current" ''
- ${pkgs.mpc_cli}/bin/mpc current -f %file%
+ echo "$(${pkgs.mpc_cli}/bin/mpc current -f %file%) \
+ $(${pkgs.mpc_cli}/bin/mpc current -f %file% \
+ | ${pkgs.gnused}/bin/sed 's@.*\(.\{11\}\)\.ogg@http://www.youtube.com/watch?v=\1@')"
'';
in {