Tweaks
This commit is contained in:
parent
c2cd04758a
commit
fd50ebe6fd
@ -1,10 +1,8 @@
|
|||||||
#/bin/bash
|
#/bin/bash
|
||||||
|
|
||||||
# TODO videos seem to be downloading multiple times
|
DOWNLOAD_DIR=/media/nas/video/series
|
||||||
# TODO late show
|
YOUTUBE_DL="/usr/bin/youtube-dl"
|
||||||
|
#YOUTUBE_DL="python3 /usr/local/bin/youtube-dl"
|
||||||
DOWNLOAD_DIR=/media/storage/shared/Videos
|
|
||||||
YOUTUBE_DL="python3 /usr/local/bin/youtube-dl"
|
|
||||||
#KEEP_DAYS=40
|
#KEEP_DAYS=40
|
||||||
KEEP_DAYS=100
|
KEEP_DAYS=100
|
||||||
ARGS=-qwc
|
ARGS=-qwc
|
||||||
@ -46,7 +44,7 @@ function download_show {
|
|||||||
url="$1"
|
url="$1"
|
||||||
show="$2"
|
show="$2"
|
||||||
|
|
||||||
mkdir -p "${DOWNLOAD_DIR}/${show}/"
|
mkdir -p "${DOWNLOAD_DIR}/${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
|
||||||
@ -104,5 +102,3 @@ else
|
|||||||
download_show "${url}" "${show}"
|
download_show "${url}" "${show}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user