diff options
Diffstat (limited to 'bin/process-music.sh')
| -rwxr-xr-x | bin/process-music.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/process-music.sh b/bin/process-music.sh new file mode 100755 index 0000000..bcf36fe --- /dev/null +++ b/bin/process-music.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +cd /mnt/pool/media + +# Remove interlacing from album art for iPods +find ./downloads/deemix -iname "cover.jpg" -o -iname "cover.gif" -o -iname "cover.png" | while read file + do convert "$file" -interlace none "$file" +done + + +# Copy it over +cp -R ./downloads/deemix/* ./libraries/music +# Clear the download cache folder +rm -rf ./downloads/deemix/* |
