diff --git a/download_daily_shows.sh b/download_daily_shows.sh index e3b702c..adc315a 100755 --- a/download_daily_shows.sh +++ b/download_daily_shows.sh @@ -1,8 +1,8 @@ #/bin/bash DOWNLOAD_DIR=/media/nas/video/series -YOUTUBE_DL="/usr/bin/youtube-dl" -#YOUTUBE_DL="python3 /usr/local/bin/youtube-dl" +#YOUTUBE_DL="/usr/bin/youtube-dl" +YOUTUBE_DL="/usr/local/bin/youtube-dl" #KEEP_DAYS=40 KEEP_DAYS=100 ARGS=-qwc @@ -27,15 +27,15 @@ shift "$((OPTIND-1))" # Shift off the options and optional --. # Formats: # python3 /usr/local/bin/youtube-dl -F http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes/ -# [info] Available formats for b2a5ae64-3795-4914-b3a7-644eed83372f: +# [info] Available formats for 097b3593-7592-4fe6-95fe-18d5846fead0: # format code extension resolution note -# 200 mp4 384x216 -# 400 mp4 384x216 -# 750 mp4 512x288 -# 1200 mp4 640x360 -# 1700 mp4 768x432 -# 2200 mp4 960x540 -# 3500 mp4 1280x720 (best) +# 278 mp4 384x216 +# 498 mp4 512x288 +# 1028 mp4 640x360 +# 1528 mp4 768x432 +# 2128 mp4 960x540 +# 3128 mp4 1280x720 +# 5128 mp4 1920x1080 (best) #FORMAT="vhttp-750" #FORMAT="rtmp-750" #FORMAT="rtmp-3500/rtmp2200" @@ -48,7 +48,7 @@ function download_show { # Get a chosen video format for each site if [[ "${url}" =~ cc.com ]]; then - FORMAT=1200 + FORMAT=1028 elif [[ "${url}" =~ cbs.com ]]; then FORMAT="rtmp-496-0" fi @@ -88,7 +88,8 @@ if [[ -n ${url} ]]; then fi download_show "${url}" "${show}" else - for show in "The Daily Show" "The Late Show"; do + #for show in "The Daily Show" "The Late Show"; do + for show in "The Daily Show"; do url= if [[ "${show}" =~ Daily ]]; then url=http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes/