fetch all tags

This commit is contained in:
Vincent Riquer 2013-03-14 13:24:13 +01:00
parent 1cfd315c81
commit 06761b74a4

51
atom
View File

@ -1209,7 +1209,18 @@ echo '
destinations.name, destinations.name,
destination_files.id, destination_files.id,
tags.rate, 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 FROM source_files
INNER JOIN destination_files INNER JOIN destination_files
ON source_files.id ON source_files.id
@ -1229,7 +1240,7 @@ echo '
read -u4 line read -u4 line
while ! [[ $line = AtOM:NoMoreFiles ]] while ! [[ $line = AtOM:NoMoreFiles ]]
do do
decodefiles+=("$line") decodefiles+=("$line|")
read -u4 line read -u4 line
done done
echo -n 'Creating tasks... ' echo -n 'Creating tasks... '
@ -1250,6 +1261,28 @@ do
rate=${rest%%|*} rate=${rest%%|*}
rest=${rest#*|} rest=${rest#*|}
channels=${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 unset rest
case "$mimetype" in case "$mimetype" in
'audio/mpeg') 'audio/mpeg')
@ -1316,16 +1349,30 @@ do
fi fi
fi fi
unset \ unset \
album \
albumartist \
artist \
bitrate \
channels \ channels \
commandline \
composer \
decodetaskid \ decodetaskid \
destfileid \ destfileid \
destination \ destination \
disc \
fileid \ fileid \
filename \ filename \
mimetype \
performer \
rate \ rate \
rest \ rest \
sox_needed \
soxoptions_in \ soxoptions_in \
soxoptions_out \ soxoptions_out \
soxtaskid \
title \
track \
year \
tmpfile tmpfile
done done
echo 'COMMIT;' >&3 echo 'COMMIT;' >&3