summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/process-music.sh14
-rwxr-xr-xbin/sync-family-azure.sh1
-rwxr-xr-xbin/sync-photos-azure.sh1
3 files changed, 16 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/*
diff --git a/bin/sync-family-azure.sh b/bin/sync-family-azure.sh
new file mode 100755
index 0000000..970e1e8
--- /dev/null
+++ b/bin/sync-family-azure.sh
@@ -0,0 +1 @@
+rclone sync -P --exclude=".DS_Store" /mnt/pool/home/family nvandoorn:family/
diff --git a/bin/sync-photos-azure.sh b/bin/sync-photos-azure.sh
new file mode 100755
index 0000000..56b5f3c
--- /dev/null
+++ b/bin/sync-photos-azure.sh
@@ -0,0 +1 @@
+rclone sync -P --exclude=".DS_Store" /mnt/pool/home/nick/photos nvandoorn:photos/