|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.258"
|
|
|
|
scriptVersion="1.0.259"
|
|
|
|
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
|
|
|
|
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
if [ "$lidarrUrlBase" == "null" ]; then
|
|
|
|
if [ "$lidarrUrlBase" == "null" ]; then
|
|
|
@ -181,6 +181,8 @@ DownloadFormat () {
|
|
|
|
else
|
|
|
|
else
|
|
|
|
bitrateError="false"
|
|
|
|
bitrateError="false"
|
|
|
|
audioFormatError="false"
|
|
|
|
audioFormatError="false"
|
|
|
|
|
|
|
|
tidalQuality=HiFi
|
|
|
|
|
|
|
|
deemixQuality=flac
|
|
|
|
|
|
|
|
|
|
|
|
case "$audioBitrate" in
|
|
|
|
case "$audioBitrate" in
|
|
|
|
lossless | high | low)
|
|
|
|
lossless | high | low)
|
|
|
@ -411,7 +413,7 @@ TidalClientTest () {
|
|
|
|
while [ $i -lt 3 ]; do
|
|
|
|
while [ $i -lt 3 ]; do
|
|
|
|
i=$(( $i + 1 ))
|
|
|
|
i=$(( $i + 1 ))
|
|
|
|
TidaldlStatusCheck
|
|
|
|
TidaldlStatusCheck
|
|
|
|
tidal-dl -q Normal -o "$downloadPath"/incomplete -l "166356219" &>/dev/null
|
|
|
|
tidal-dl -q Normal -o "$downloadPath"/incomplete -l "166356219"
|
|
|
|
downloadCount=$(find "$downloadPath"/incomplete -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l)
|
|
|
|
downloadCount=$(find "$downloadPath"/incomplete -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l)
|
|
|
|
if [ "$downloadCount" -le "0" ]; then
|
|
|
|
if [ "$downloadCount" -le "0" ]; then
|
|
|
|
continue
|
|
|
|
continue
|
|
|
@ -554,7 +556,7 @@ DownloadProcess () {
|
|
|
|
if [ "$downloadTry" == "1" ]; then
|
|
|
|
if [ "$downloadTry" == "1" ]; then
|
|
|
|
DeezerClientTest
|
|
|
|
DeezerClientTest
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
deemix -b $deemixQuality -p $downloadPath/incomplete "https://www.deezer.com/album/$1" &>/dev/null
|
|
|
|
deemix -b $deemixQuality -p $downloadPath/incomplete "https://www.deezer.com/album/$1"
|
|
|
|
if [ -d "/tmp/deemix-imgs" ]; then
|
|
|
|
if [ -d "/tmp/deemix-imgs" ]; then
|
|
|
|
rm -rf /tmp/deemix-imgs
|
|
|
|
rm -rf /tmp/deemix-imgs
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -566,7 +568,7 @@ DownloadProcess () {
|
|
|
|
TidalClientTest
|
|
|
|
TidalClientTest
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
TidaldlStatusCheck
|
|
|
|
TidaldlStatusCheck
|
|
|
|
tidal-dl -q $tidalQuality -o $downloadPath/incomplete -l "$1" &>/dev/null
|
|
|
|
tidal-dl -q $tidalQuality -o "$downloadPath/incomplete" -l "$1"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
find "$downloadPath/incomplete" -type f -iname "*.flac" -newer "/temp-download" -print0 | while IFS= read -r -d '' file; do
|
|
|
|
find "$downloadPath/incomplete" -type f -iname "*.flac" -newer "/temp-download" -print0 | while IFS= read -r -d '' file; do
|
|
|
@ -836,7 +838,7 @@ DeemixClientSetup () {
|
|
|
|
DeezerClientTest () {
|
|
|
|
DeezerClientTest () {
|
|
|
|
log "DEEZER :: deemix client setup verification..."
|
|
|
|
log "DEEZER :: deemix client setup verification..."
|
|
|
|
|
|
|
|
|
|
|
|
deemix -b 128 -p $downloadPath/incomplete "https://www.deezer.com/album/197472472" &>/dev/null
|
|
|
|
deemix -b 128 -p $downloadPath/incomplete "https://www.deezer.com/album/197472472"
|
|
|
|
if [ -d "/tmp/deemix-imgs" ]; then
|
|
|
|
if [ -d "/tmp/deemix-imgs" ]; then
|
|
|
|
rm -rf /tmp/deemix-imgs
|
|
|
|
rm -rf /tmp/deemix-imgs
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|