Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mpd_add_musicdir: helper utility for transfering songs using the mpd db

  • Loading branch information...
commit d086120121456163b335c6c263fe82cf8c8c2b37 1 parent ce3eb16
@trapd00r authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 mpd_add_musicdir
View
11 mpd_add_musicdir
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+
+my $where = $ENV{MPD_MUSIC_DIR} // '/mnt/Music_1';
+
+$where =~ s{/+\z}{};
+
+while(my $f = <>) {
+ chomp $f;
+ $f =~ s{^}{$where/};
+ print "$f\n";
+}
Please sign in to comment.
Something went wrong with that request. Please try again.