Created
March 7, 2009 10:11
-
-
Save frioux/75297 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/home/frew/personal/rakudo/perl6 | |
use Ghetto; | |
for =$*IN -> $line { | |
unless $line ~~ /^\#/ { | |
my $file = $line.split('/').pop; | |
my $cmd = qq{dcop amarok collection query "SELECT title,artist.name,album.name FROM tags JOIN artist ON artist.id = artist JOIN album ON album.id = album WHERE url LIKE \\"%/$file\\""}; | |
my ( $track,$artist,$album ) = Ghetto::run($cmd).split("\n"); | |
say $track; | |
say $artist; | |
say $album; | |
say '--'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment