Update download.sh

pull/6/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 5f94f81123
commit 42cd7ff3e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -553,12 +553,12 @@ ProcessWithBeets () {
downloadedAlbumFolder="${matchedLidarrAlbumArtistCleanName}-${matchedTagsAlbumTitleClean} ($matchedTagsAlbumYear)-$2-$3" downloadedAlbumFolder="${matchedLidarrAlbumArtistCleanName}-${matchedTagsAlbumTitleClean} ($matchedTagsAlbumYear)-$2-$3"
if [ "$1" != "/downloads/lidarr/complete/$downloadedAlbumFolder" ];then if [ "$1" != "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" ];then
mv "$1" "/downloads/lidarr/complete/$downloadedAlbumFolder" mv "$1" "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"
chmod 777 "/downloads/lidarr/complete/$downloadedAlbumFolder" chmod 777 "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"
chown abc:abc "/downloads/lidarr/complete/$downloadedAlbumFolder" chown abc:abc "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"
chmod 666 "/downloads/lidarr/complete/$downloadedAlbumFolder"/* chmod 666 "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/*
chown abc:abc "/downloads/lidarr/complete/$downloadedAlbumFolder"/* chown abc:abc "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/*
fi fi
} }

Loading…
Cancel
Save