From 011702b518c78f3a8d4635e3c7f3b93780fc585c Mon Sep 17 00:00:00 2001 From: lshprung Date: Sat, 2 Oct 2021 16:06:24 -0700 Subject: Created README --- build_playlists.plx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'build_playlists.plx') diff --git a/build_playlists.plx b/build_playlists.plx index a2e0760..fc5b0f5 100755 --- a/build_playlists.plx +++ b/build_playlists.plx @@ -61,7 +61,7 @@ Options: --sql SQL_STATEMENT generate a single playlist based on output of some SQL statement Examples: - $0 ALBUM,ALBUMARTIST /home/john/Music/playlists/{ALBUMARTIST}-{ALBUM}.m3u Generate a playlist for every combination of ALBUM and ALBUMARTIST in the database, with the output file pattern ALBUMARTIST-ALBUM.m3u + $0 ALBUM,ALBUMARTIST \"/home/john/Music/playlists/{ALBUMARTIST}-{ALBUM}.m3u\" Generate a playlist for every combination of ALBUM and ALBUMARTIST in the database, with the output file pattern ALBUMARTIST-ALBUM.m3u $0 --sql \"SELECT PATH FROM LIBRARY WHERE ARTIST='Steely Dan';\" steely_dan.m3u Generate a playlist based on the output of this SQL statement $0 --sql \"ARTIST='Steely Dan';\" steely_dan.m3u If an incomplete SQL statement is received, the \"SELECT PATH FROM {table_name} WHERE \" part of the SQL statement is assumed to be implied "; @@ -145,6 +145,14 @@ else { } } + ## DEBUG TODO remove me + #for my $i (keys %tag_hash){ + # for my $j ($tag_hash{$i}){ + # print "$j\n"; + # } + #} + #die; + # TODO break up by semicolon (signifying array of tag values) # Determine output_file $output_file = $output_pattern; -- cgit