From 06761b74a49e887c42bd28142a1b22c57dd3cb31 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Thu, 14 Mar 2013 13:24:13 +0100 Subject: [PATCH] fetch all tags --- atom | 51 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/atom b/atom index 9dd3399..3658747 100755 --- a/atom +++ b/atom @@ -1209,7 +1209,18 @@ echo ' destinations.name, destination_files.id, tags.rate, - tags.channels + tags.channels, + tags.bitrate, + tags.genre, + tags.albumartist, + tags.year, + tags.album, + tags.disc, + tags.artist, + tags.track, + tags.title, + tags.composer, + tags.performer FROM source_files INNER JOIN destination_files ON source_files.id @@ -1229,7 +1240,7 @@ echo ' read -u4 line while ! [[ $line = AtOM:NoMoreFiles ]] do - decodefiles+=("$line") + decodefiles+=("$line|") read -u4 line done echo -n 'Creating tasks... ' @@ -1250,6 +1261,28 @@ do rate=${rest%%|*} rest=${rest#*|} channels=${rest%%|*} + rest=${rest#*|} + bitrate=${rest%%|*} + rest=${rest#*|} + genre=${rest%%|*} + rest=${rest#*|} + albumartist=${rest%%|*} + rest=${rest#*|} + year=${rest%%|*} + rest=${rest#*|} + album=${rest%%|*} + rest=${rest#*|} + disc=${rest%%|*} + rest=${rest#*|} + artist=${rest%%|*} + rest=${rest#*|} + track=${rest%%|*} + rest=${rest#*|} + title=${rest%%|*} + rest=${rest#*|} + composer=${rest%%|*} + rest=${rest#*|} + performer=${rest%%|*} unset rest case "$mimetype" in 'audio/mpeg') @@ -1316,16 +1349,30 @@ do fi fi unset \ + album \ + albumartist \ + artist \ + bitrate \ channels \ + commandline \ + composer \ decodetaskid \ destfileid \ destination \ + disc \ fileid \ filename \ + mimetype \ + performer \ rate \ rest \ + sox_needed \ soxoptions_in \ soxoptions_out \ + soxtaskid \ + title \ + track \ + year \ tmpfile done echo 'COMMIT;' >&3