Change Daily Show resolution

This commit is contained in:
Timothy Allen 2016-04-06 10:20:36 +02:00
parent c06bf813d8
commit d8d73c34b1

View File

@ -1,8 +1,8 @@
#/bin/bash #/bin/bash
DOWNLOAD_DIR=/media/nas/video/series DOWNLOAD_DIR=/media/nas/video/series
YOUTUBE_DL="/usr/bin/youtube-dl" #YOUTUBE_DL="/usr/bin/youtube-dl"
#YOUTUBE_DL="python3 /usr/local/bin/youtube-dl" YOUTUBE_DL="/usr/local/bin/youtube-dl"
#KEEP_DAYS=40 #KEEP_DAYS=40
KEEP_DAYS=100 KEEP_DAYS=100
ARGS=-qwc ARGS=-qwc
@ -27,15 +27,15 @@ shift "$((OPTIND-1))" # Shift off the options and optional --.
# Formats: # Formats:
# python3 /usr/local/bin/youtube-dl -F http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes/ # 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 # format code extension resolution note
# 200 mp4 384x216 # 278 mp4 384x216
# 400 mp4 384x216 # 498 mp4 512x288
# 750 mp4 512x288 # 1028 mp4 640x360
# 1200 mp4 640x360 # 1528 mp4 768x432
# 1700 mp4 768x432 # 2128 mp4 960x540
# 2200 mp4 960x540 # 3128 mp4 1280x720
# 3500 mp4 1280x720 (best) # 5128 mp4 1920x1080 (best)
#FORMAT="vhttp-750" #FORMAT="vhttp-750"
#FORMAT="rtmp-750" #FORMAT="rtmp-750"
#FORMAT="rtmp-3500/rtmp2200" #FORMAT="rtmp-3500/rtmp2200"
@ -48,7 +48,7 @@ function download_show {
# Get a chosen video format for each site # Get a chosen video format for each site
if [[ "${url}" =~ cc.com ]]; then if [[ "${url}" =~ cc.com ]]; then
FORMAT=1200 FORMAT=1028
elif [[ "${url}" =~ cbs.com ]]; then elif [[ "${url}" =~ cbs.com ]]; then
FORMAT="rtmp-496-0" FORMAT="rtmp-496-0"
fi fi
@ -88,7 +88,8 @@ if [[ -n ${url} ]]; then
fi fi
download_show "${url}" "${show}" download_show "${url}" "${show}"
else 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= url=
if [[ "${show}" =~ Daily ]]; then if [[ "${show}" =~ Daily ]]; then
url=http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes/ url=http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes/