Created
October 8, 2023 17:06
-
-
Save ohiofi/69239cb46ff312811e98f3112cf0d309 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
for each in $(cat /Volumes/WDPassport2/YouTube/channel_list.txt ) | |
do | |
printf $each | |
printf "\n" | |
/opt/local/bin/yt-dlp \ | |
--ffmpeg-location /usr/local/bin/ffmpeg \ | |
--autonumber-start 1 \ | |
--force-ipv4 \ | |
-f 'bestvideo[ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/mp4' \ | |
--cookies youtube.com_cookies.txt \ | |
--restrict-filenames \ | |
--download-archive /Volumes/WDPassport2/YouTube/download_log.txt \ | |
--max-downloads 3 \ | |
--write-info-json \ | |
--write-thumbnail \ | |
--add-metadata \ | |
--hls-prefer-native \ | |
-o "/Volumes/WDPassport2/YouTube/%(uploader)s/%(uploader)s.S$(date '+%m')E$(date +'%d')%(autonumber)1d.ep_%(title)s [%(id)s].%(ext)s" \ | |
$each | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment