commit
2342e997a0
2 changed files with 13 additions and 10 deletions
|
@ -222,13 +222,19 @@ DownloadVideo () {
|
||||||
chmod 777 "$videoDownloadPath/incomplete"
|
chmod 777 "$videoDownloadPath/incomplete"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ytdlpConfigurableArgs=""
|
||||||
|
if [ ! -z "$cookiesFile" ]; then
|
||||||
|
ytdlpConfigurableArgs='${ytdlpConfigurableArgs} --cookies "$cookiesFile '
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$videoInfoJson" == "true" ]; then
|
||||||
|
ytdlpConfigurableArgs='${ytdlpConfigurableArgs} --write-info-json '
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if echo "$1" | grep -i "youtube" | read; then
|
if echo "$1" | grep -i "youtube" | read; then
|
||||||
if [ $videoContainer = mkv ]; then
|
if [ $videoContainer = mkv ]; then
|
||||||
if [ ! -z "$cookiesFile" ]; then
|
yt-dlp -f "$videoFormat" --no-video-multistreams -o "$videoDownloadPath/incomplete/${2}${3}" $ytdlpConfigurableArgs --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1"
|
||||||
yt-dlp -f "$videoFormat" --no-video-multistreams --cookies "$cookiesFile" -o "$videoDownloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1"
|
|
||||||
else
|
|
||||||
yt-dlp -f "$videoFormat" --no-video-multistreams -o "$videoDownloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1"
|
|
||||||
fi
|
|
||||||
if [ -f "$videoDownloadPath/incomplete/${2}${3}.mkv" ]; then
|
if [ -f "$videoDownloadPath/incomplete/${2}${3}.mkv" ]; then
|
||||||
chmod 666 "$videoDownloadPath/incomplete/${2}${3}.mkv"
|
chmod 666 "$videoDownloadPath/incomplete/${2}${3}.mkv"
|
||||||
downloadFailed=false
|
downloadFailed=false
|
||||||
|
@ -236,11 +242,7 @@ DownloadVideo () {
|
||||||
downloadFailed=true
|
downloadFailed=true
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ ! -z "$cookiesFile" ]; then
|
yt-dlp --format-sort ext:mp4:m4a --merge-output-format mp4 --no-video-multistreams -o "$videoDownloadPath/incomplete/${2}${3}" $ytdlpConfigurableArgs --embed-subs --sub-lang $youtubeSubtitleLanguage --no-mtime --geo-bypass "$1"
|
||||||
yt-dlp --format-sort ext:mp4:m4a --merge-output-format mp4 --no-video-multistreams --cookies "$cookiesFile" -o "$videoDownloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --no-mtime --geo-bypass "$1"
|
|
||||||
else
|
|
||||||
yt-dlp --format-sort ext:mp4:m4a --merge-output-format mp4 --no-video-multistreams -o "$videoDownloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --no-mtime --geo-bypass "$1"
|
|
||||||
fi
|
|
||||||
if [ -f "$videoDownloadPath/incomplete/${2}${3}.mp4" ]; then
|
if [ -f "$videoDownloadPath/incomplete/${2}${3}.mp4" ]; then
|
||||||
chmod 666 "$videoDownloadPath/incomplete/${2}${3}.mp4"
|
chmod 666 "$videoDownloadPath/incomplete/${2}${3}.mp4"
|
||||||
downloadFailed=false
|
downloadFailed=false
|
||||||
|
|
|
@ -70,6 +70,7 @@ preventRelatedArtistsLoop="true" # true = enabled :: This will prevent a
|
||||||
##### VIDEO SCRIPT
|
##### VIDEO SCRIPT
|
||||||
addFeaturedVideoArtists="false" # true = enabled :: WARNING !!! WARNING !!! Enabling this can cause an endless loop of additional artists.... Enabling this will enable the extended Video script to automatically add Music Video Featured Artists to your existing Lidarr artists from IMVDB
|
addFeaturedVideoArtists="false" # true = enabled :: WARNING !!! WARNING !!! Enabling this can cause an endless loop of additional artists.... Enabling this will enable the extended Video script to automatically add Music Video Featured Artists to your existing Lidarr artists from IMVDB
|
||||||
videoFormat="bv[width>=1920]+ba" # ONLY CHANGE if you know what your doing, for guidence, please see yt-dlp documentation.
|
videoFormat="bv[width>=1920]+ba" # ONLY CHANGE if you know what your doing, for guidence, please see yt-dlp documentation.
|
||||||
|
videoInfoJson="false" # true = enabled :: Stores yt-dlp info-json files alongside video files.
|
||||||
youtubeSubtitleLanguage="en" # Desired Language Code :: For guidence, please see yt-dlp documentation.
|
youtubeSubtitleLanguage="en" # Desired Language Code :: For guidence, please see yt-dlp documentation.
|
||||||
disableImvd="false" # true = enabled :: Use this to disable IMVDB as a source, will result in only tidal videos
|
disableImvd="false" # true = enabled :: Use this to disable IMVDB as a source, will result in only tidal videos
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue