updateTags(): read old data
This commit is contained in:
parent
24aef12e33
commit
64b14b67f7
@ -29,7 +29,20 @@ updateTags() {
|
|||||||
source_files.id,
|
source_files.id,
|
||||||
source_files.last_change,
|
source_files.last_change,
|
||||||
mime_type_actions.mime_text,
|
mime_type_actions.mime_text,
|
||||||
source_files.filename
|
source_files.filename,
|
||||||
|
tags.album,
|
||||||
|
tags.albumartist,
|
||||||
|
tags.artist,
|
||||||
|
tags.composer,
|
||||||
|
tags.disc,
|
||||||
|
tags.genre,
|
||||||
|
tags.performer,
|
||||||
|
tags.title,
|
||||||
|
tags.track,
|
||||||
|
tags.year,
|
||||||
|
tags.rate,
|
||||||
|
tags.channels,
|
||||||
|
tags.bitrate
|
||||||
FROM source_files
|
FROM source_files
|
||||||
INNER JOIN destination_files
|
INNER JOIN destination_files
|
||||||
ON destination_files.source_file_id=source_files.id
|
ON destination_files.source_file_id=source_files.id
|
||||||
@ -63,7 +76,34 @@ updateTags() {
|
|||||||
lastchange=${rest%%::AtOM:SQL:Sep::*}
|
lastchange=${rest%%::AtOM:SQL:Sep::*}
|
||||||
rest=${rest#*::AtOM:SQL:Sep::}
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
mimetype=${rest%%::AtOM:SQL:Sep::*}
|
mimetype=${rest%%::AtOM:SQL:Sep::*}
|
||||||
filename=${rest#*::AtOM:SQL:Sep::}
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
filename=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldalbum=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldalbumartist=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldartist=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldcomposer=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
olddisc=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldgenre=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldperformer=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldtitle=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldtrack=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldyear=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldrate=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldchannels=${rest%%::AtOM:SQL:Sep::*}
|
||||||
|
rest=${rest#*::AtOM:SQL:Sep::}
|
||||||
|
oldbitrate=${rest%%::AtOM:SQL:Sep::*}
|
||||||
echo -en "\rTags: $((++count*100/filecount))%"
|
echo -en "\rTags: $((++count*100/filecount))%"
|
||||||
if (( count % 1000 == 0 ))
|
if (( count % 1000 == 0 ))
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user