Last active
June 20, 2024 02:50
-
-
Save luckylittle/a357e383832853ab064d6ef5ed4ececa to your computer and use it in GitHub Desktop.
How to download the best quality video+audio from YouTube?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export python=/usr/bin/python | |
NAME="Living.With.Hitler" | |
SEASON="01" | |
EPISODE="03" | |
RLS=CZECH.720p.WEB.H264-TUZEX | |
EXTENSION=\%\(ext\)s | |
URL=https://www.ceskatelevize.cz/porady/13994065402-zivot-s-hitlerem/221382572220003/ | |
#URL= | |
./yt-dlp --no-check-certificate --allow-unplayable --playlist-reverse -f "bv[height=720],ba" ${URL} -o "${NAME}.S${SEASON}E${EPISODE}.${RLS}.${EXTENSION}" | |
mkdir "${NAME}.S${SEASON}E${EPISODE}.${RLS}" | |
mv -v "${NAME}.S${SEASON}E${EPISODE}.${RLS}.mp4" "${NAME}.S${SEASON}E${EPISODE}.${RLS}.m4a" "${NAME}.S${SEASON}E${EPISODE}.${RLS}/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export python=/usr/bin/python3 | |
NAME="Svata" | |
YEAR="2024" | |
RLS=CZECH.1080p.WEB.H264-TUZEX | |
EXTENSION=\%\(ext\)s | |
URL=https://www.ceskatelevize.cz/porady/14181677911-svata/ | |
#URL= | |
./yt-dlp --allow-unplayable --no-check-certificate --playlist-reverse -f "bv[height=1080],ba" ${URL} -o "${NAME}.${YEAR}.${RLS}.${EXTENSION}" | |
mkdir "${NAME}.${YEAR}.${RLS}" | |
mv -v "${NAME}.${YEAR}.${RLS}.mp4" "${NAME}.${YEAR}.${RLS}.m4a" "${NAME}.${YEAR}.${RLS}/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export python=/usr/bin/python3 | |
NAME="Gepardi.V.Kleci" | |
YEAR="2023" | |
RLS=CZECH.720p.WEB.H264-TUZEX | |
EXTENSION=\%\(ext\)s | |
URL=https://www.ceskatelevize.cz/porady/15800293524-gepardi-v-kleci/ | |
#URL= | |
./yt-dlp --no-check-certificate --allow-unplayable --playlist-reverse -f "bv[height=720],ba" ${URL} -o "${NAME}.${YEAR}.${RLS}.${EXTENSION}" | |
mkdir "${NAME}.${YEAR}.${RLS}" | |
mv -v "${NAME}.${YEAR}.${RLS}.mp4" "${NAME}.${YEAR}.${RLS}.m4a" "${NAME}.${YEAR}.${RLS}/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export python=/usr/bin/python3 | |
NAME="Anatomie.Zrady" | |
SEASON="01" | |
RLS=CZECH.720p.WEB.H264-TUZEX | |
EXTENSION=\%\(ext\)s | |
# URLS Must be in the chronological order 1..2..3..4..5..! | |
URLS=( | |
THIS_LINE_WILL_BE_IGNORED_BUT_IS_REQUIRED_DUE_TO_INDEX_STARTING_AT_0 | |
https://www.ceskatelevize.cz/porady/11571031751-anatomie-zrady/219512120010001/ | |
https://www.ceskatelevize.cz/porady/11571031751-anatomie-zrady/219512120010002/ | |
) | |
END="${#URLS[@]}" | |
LASTEPISODE=$((10#$END-1)) | |
for EPISODE in $(eval echo "{01..$LASTEPISODE}"); | |
do | |
SHORTEPISODE=${EPISODE#0} | |
echo "Downloading episode ${SHORTEPISODE} of ${LASTEPISODE}" | |
./yt-dlp --no-check-certificate --allow-unplayable --playlist-reverse -f "bv[height=720],ba" ${URLS[SHORTEPISODE]} -o "${NAME}.S${SEASON}E${EPISODE}.${RLS}.${EXTENSION}" | |
mkdir "${NAME}.S${SEASON}E${EPISODE}.${RLS}" | |
mv -v "${NAME}.S${SEASON}E${EPISODE}.${RLS}.mp4" "${NAME}.S${SEASON}E${EPISODE}.${RLS}.m4a" "${NAME}.S${SEASON}E${EPISODE}.${RLS}/" | |
echo "######################################################################################################" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This build works with CeskaTelevize.cz:
./yt-dlp --update-to bashonly/[email protected]