summaryrefslogtreecommitdiff
path: root/bin/process-music.sh
diff options
context:
space:
mode:
authorNicholas Van Doorn <vandoorn.nick@gmail.com>2021-08-16 01:20:46 -0700
committerNick Van Doorn <nick@nvandoorn.com>2025-04-23 15:04:50 -0700
commit58745d81cfe3b8837cf67f1537a8fddd903cbbe9 (patch)
tree9083daef67610217df4907886bd55694d2a42648 /bin/process-music.sh
Initial commit
Diffstat (limited to 'bin/process-music.sh')
-rwxr-xr-xbin/process-music.sh14
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/*