switch to downloadPath

pull/35/head
RandomNinjaAtk 2 years ago committed by GitHub
parent de5289d26c
commit 32581ea142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,18 +83,18 @@ if [ "$skipTidal" = "false" ]; then
fileNameNoExt="${fileName%.*}"
if [ ! -f "$fileDirectory/$fileNameNoExt.mkv" ]; then
if [ ! -d /downloads/lidarr-extended/music-videos ]; then
mkdir -p /downloads/lidarr-extended/music-videos
chmod 777 /downloads/lidarr-extended/music-videos
chown abc:abc /downloads/lidarr-extended/music-videos
if [ ! -d $downloadPath/music-videos ]; then
mkdir -p $downloadPath/music-videos
chmod 777 $downloadPath/music-videos
chown abc:abc $downloadPath/music-videos
else
rm -rf /downloads/lidarr-extended/music-videos/*
rm -rf $downloadPath/music-videos/*
fi
tidal-dl -r P1080
tidal-dl -o /downloads/lidarr-extended/music-videos -l "https://tidal.com/browse/video/$i"
tidal-dl -o $downloadPath/music-videos -l "https://tidal.com/browse/video/$i"
find "/downloads/lidarr-extended/music-videos" -type f -iname "*.mp4" -print0 | while IFS= read -r -d '' video; do
find "$downloadPath/music-videos" -type f -iname "*.mp4" -print0 | while IFS= read -r -d '' video; do
ffmpeg \
-i "${video}" \
-vcodec copy \
@ -104,7 +104,7 @@ if [ "$skipTidal" = "false" ]; then
log "Downloaded Video to: $fileDirectory/$fileNameNoExt.mkv"
chmod 666 "$fileDirectory/$fileNameNoExt.mkv"
chown abc:abc "$fileDirectory/$fileNameNoExt.mkv"
rm -rf /downloads/lidarr-extended/music-videos/*
rm -rf $downloadPath/music-videos/*
else
log "ERROR :: Previously Downloaded $fileDirectory/$fileNameNoExt.mkv ($i)"
fi

Loading…
Cancel
Save