From c7832e07cfc64308a16b748c8ff3e8fe8d1b3b6d Mon Sep 17 00:00:00 2001 From: exu Date: Tue, 23 Jul 2024 19:57:50 +0200 Subject: [PATCH] Download metadata for audiobooks first --- arch-config/scripts/in_path/sc-jellyfin-update | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch-config/scripts/in_path/sc-jellyfin-update b/arch-config/scripts/in_path/sc-jellyfin-update index 4057e6f2..0583f72a 100755 --- a/arch-config/scripts/in_path/sc-jellyfin-update +++ b/arch-config/scripts/in_path/sc-jellyfin-update @@ -13,6 +13,9 @@ if ! ssh-add -T "${sshkeypath}.pub" &>/dev/null; then ssh-add -q "$sshkeypath" fi +# Server: sync other files from audiobooks +rsync -uvr --progress -e "ssh -i $sshkeypath -p $port" "${user}@${server}:/mnt/media/" "/mnt/storage/MediaLibrary/Audiobooks" + # NAS: video files rsync -uvr --progress --delete /mnt/storage/MediaLibrary/{Movies,other,Patreon,Shows} /mnt/lan1nas1/ & @@ -20,7 +23,7 @@ rsync -uvr --progress --delete /mnt/storage/MediaLibrary/{Movies,other,Patreon,S rsync -uvrL --progress --delete /home/exu/Musik /mnt/lan1nas1/ & # NAS: audiobooks -rsync -uvrL --progress "/mnt/storage/MediaLibrary/Audiobooks" /mnt/lan1nas1/ & +rsync -uvrL --progress --delete "/mnt/storage/MediaLibrary/Audiobooks" /mnt/lan1nas1/ & # Server: music rsync -uvrL --progress --delete -e "ssh -i $sshkeypath -p $port" /home/exu/Musik/ ${user}@${server}:/mnt/media/Musik/ @@ -29,7 +32,7 @@ rsync -uvrL --progress --delete -e "ssh -i $sshkeypath -p $port" /home/exu/Musik rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" /mnt/storage/MediaLibrary/{Movies,Shows,other} ${user}@${server}:/mnt/media/ # Server: audiobooks -rsync -uvr --progress -e "ssh -i $sshkeypath -p $port" "/mnt/storage/MediaLibrary/Audiobooks" "${user}@${server}:/mnt/media/" +rsync -uvr --progress --delete -e "ssh -i $sshkeypath -p $port" "/mnt/storage/MediaLibrary/Audiobooks" "${user}@${server}:/mnt/media/" # wait for background jobs wait