tested and fixed my changes
This commit is contained in:
parent
7c637d1ac9
commit
993425d205
|
@ -87,7 +87,7 @@ parse() {
|
||||||
chan )
|
chan )
|
||||||
channel "$argument"
|
channel "$argument"
|
||||||
;;
|
;;
|
||||||
video | sel | url | metadata | md )
|
video | sel | url )
|
||||||
case "$argument" in
|
case "$argument" in
|
||||||
*youtube.com* )
|
*youtube.com* )
|
||||||
selected_video="$argument"
|
selected_video="$argument"
|
||||||
|
@ -98,10 +98,16 @@ parse() {
|
||||||
esac
|
esac
|
||||||
yt-meta "$selected_video"
|
yt-meta "$selected_video"
|
||||||
;;
|
;;
|
||||||
|
metadata | md )
|
||||||
|
selected_video="${argument:-$selected_video}"
|
||||||
|
yt-meta "$selected_video"
|
||||||
|
;;
|
||||||
download | dl )
|
download | dl )
|
||||||
|
selected_video="${argument:-$selected_video}"
|
||||||
yt-down "$selected_video"
|
yt-down "$selected_video"
|
||||||
;;
|
;;
|
||||||
stream | str )
|
stream | str )
|
||||||
|
selected_video="${argument:-$selected_video}"
|
||||||
yt-down -s "$selected_video"
|
yt-down -s "$selected_video"
|
||||||
;;
|
;;
|
||||||
about | ! )
|
about | ! )
|
||||||
|
|
Reference in New Issue