support for downloading youtube/@user urls
This commit is contained in:
parent
1556ec4be9
commit
cd6ce2d4ff
11
y.sh
11
y.sh
|
@ -128,6 +128,11 @@ case "$SITE" in
|
||||||
'm.youtube.com'| \
|
'm.youtube.com'| \
|
||||||
'youtu.be')
|
'youtu.be')
|
||||||
echo '> youtube'
|
echo '> youtube'
|
||||||
|
if [[ "$URL" = *youtube\.com\/@* ]]; then
|
||||||
|
echo '> > store archive'
|
||||||
|
YDL "$URL" -f 251 \
|
||||||
|
-o "$YT_PATH/%(uploader_id)s/%(title).100B [%(id)s].%(ext)s"
|
||||||
|
else
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
'm')
|
'm')
|
||||||
echo '> > music'
|
echo '> > music'
|
||||||
|
@ -139,12 +144,18 @@ case "$SITE" in
|
||||||
YDL "$URL" -f 251 \
|
YDL "$URL" -f 251 \
|
||||||
-o "$AUDIO_PATH/%(title).100B [%(id)s].%(ext)s"
|
-o "$AUDIO_PATH/%(title).100B [%(id)s].%(ext)s"
|
||||||
;;
|
;;
|
||||||
|
's')
|
||||||
|
echo '> > store archive'
|
||||||
|
YDL "$URL" -f 251 \
|
||||||
|
-o "$YT_PATH/%(uploader_id)s/%(title).100B [%(id)s].%(ext)s"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo '> > _video_'
|
echo '> > _video_'
|
||||||
YDL "$URL" \
|
YDL "$URL" \
|
||||||
-o "$DEFAULT_PATH/yt-%(title).100B [%(id)s].%(ext)s"
|
-o "$DEFAULT_PATH/yt-%(title).100B [%(id)s].%(ext)s"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue