forked from axiom-team/astrXbian
install youtube-dl if missing
This commit is contained in:
parent
b684115dd7
commit
192300bcb9
|
@ -135,6 +135,10 @@ mkdir -p ${YTEMP}
|
||||||
|
|
||||||
# youtube-dl $YTURL
|
# youtube-dl $YTURL
|
||||||
echo "VIDEO $YTURL"
|
echo "VIDEO $YTURL"
|
||||||
|
if [[ ! -f /usr/local/bin/youtube-dl ]]; then
|
||||||
|
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
|
||||||
|
sudo chmod a+rx /usr/local/bin/youtube-dl
|
||||||
|
fi
|
||||||
/usr/local/bin/youtube-dl -f '[height=720]/best' \
|
/usr/local/bin/youtube-dl -f '[height=720]/best' \
|
||||||
--no-playlist --write-info-json --write-annotations \
|
--no-playlist --write-info-json --write-annotations \
|
||||||
--no-mtime -o "${YTEMP}/%(id)s&%(title)s.%(ext)s" $YTURL
|
--no-mtime -o "${YTEMP}/%(id)s&%(title)s.%(ext)s" $YTURL
|
||||||
|
|
Loading…
Reference in New Issue