|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.043"
|
|
|
|
scriptVersion="1.0.044"
|
|
|
|
|
|
|
|
|
|
|
|
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)"
|
|
|
@ -18,6 +18,7 @@ musicbrainzMirror=https://musicbrainz.org
|
|
|
|
|
|
|
|
|
|
|
|
# Debugging Settings
|
|
|
|
# Debugging Settings
|
|
|
|
#addFeaturedVideoArtists=true
|
|
|
|
#addFeaturedVideoArtists=true
|
|
|
|
|
|
|
|
#videoFormat=bestvideo+best+bestaudio
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$dlClientSource" = "tidal" ] || [ "$dlClientSource" = "both" ]; then
|
|
|
|
if [ "$dlClientSource" = "tidal" ] || [ "$dlClientSource" = "both" ]; then
|
|
|
|
sourcePreference=tidal
|
|
|
|
sourcePreference=tidal
|
|
|
@ -312,9 +313,9 @@ DownloadVideo () {
|
|
|
|
|
|
|
|
|
|
|
|
if echo "$1" | grep -i "youtube" | read; then
|
|
|
|
if echo "$1" | grep -i "youtube" | read; then
|
|
|
|
if [ ! -z "$cookiesFile" ]; then
|
|
|
|
if [ ! -z "$cookiesFile" ]; then
|
|
|
|
yt-dlp -f "$videoFormat" --cookies "$cookiesFile" -o "$downloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1" &>/dev/null
|
|
|
|
yt-dlp -f "$videoFormat" --no-video-multistreams --cookies "$cookiesFile" -o "$downloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1" &>/dev/null
|
|
|
|
else
|
|
|
|
else
|
|
|
|
yt-dlp -f "$videoFormat" -o "$downloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1" &>/dev/null
|
|
|
|
yt-dlp -f "$videoFormat" --no-video-multistreams -o "$downloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1" &>/dev/null
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ -f "$downloadPath/incomplete/${2}${3}.mkv" ]; then
|
|
|
|
if [ -f "$downloadPath/incomplete/${2}${3}.mkv" ]; then
|
|
|
|
chmod 666 "$downloadPath/incomplete/${2}${3}.mkv"
|
|
|
|
chmod 666 "$downloadPath/incomplete/${2}${3}.mkv"
|
|
|
|