diff options
author | lassulus <lass@aidsballs.de> | 2016-05-25 20:57:08 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-05-25 20:57:08 +0200 |
commit | 39be633cf42aaaa4f8a6a992fd3af4e139ab8917 (patch) | |
tree | 63cc085b4715c44e0f1f52d2630ca775a8df6060 /lass/2configs | |
parent | b78cafa686a4e01f815f75d1c815996e54fa4597 (diff) |
l 2 radio print_current: show youtube link
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/radio.nix | 4 |
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 { |