Change invocation somewhat
This commit is contained in:
parent
1fff38e4e6
commit
26e7155d55
80
yt
80
yt
|
@ -43,12 +43,12 @@ fi
|
||||||
|
|
||||||
# Show usage message of the video subcommand
|
# Show usage message of the video subcommand
|
||||||
function video_usage {
|
function video_usage {
|
||||||
echo "usage: yt video --(s)earch [...]"
|
echo "usage: yt video (s)earch [...]"
|
||||||
echo " yt video --(t)itle [...]"
|
echo " yt video (t)itle [...]"
|
||||||
echo " yt video --(d)esc [...]"
|
echo " yt video (d)esc [...]"
|
||||||
echo " yt video --(a)uthor [...]"
|
echo " yt video (a)uthor [...]"
|
||||||
echo " yt video --(v)iews [...]"
|
echo " yt video (v)iews [...]"
|
||||||
echo " yt video --(D)ate [...]"
|
echo " yt video (D)ate [...]"
|
||||||
|
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
|
@ -65,20 +65,20 @@ function video_invocation {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$command" in
|
case "$command" in
|
||||||
"--search") video_search_invocation $arguments;;
|
"search") video_search_invocation $arguments;;
|
||||||
"-s") video_search_invocation $arguments;;
|
"s") video_search_invocation $arguments;;
|
||||||
"-d") video_desc_invocation $arguments;;
|
"d") video_desc_invocation $arguments;;
|
||||||
"--desc") video_desc_invocation $arguments;;
|
"desc") video_desc_invocation $arguments;;
|
||||||
"-D") video_uploaded_invocation $arguments;;
|
"D") video_uploaded_invocation $arguments;;
|
||||||
"--date") video_uploaded_invocation $arguments;;
|
"date") video_uploaded_invocation $arguments;;
|
||||||
"--views") video_views_invocation $arguments;;
|
"views") video_views_invocation $arguments;;
|
||||||
"-v") video_views_invocation $arguments;;
|
"v") video_views_invocation $arguments;;
|
||||||
"--author") video_author_invocation $arguments;;
|
"author") video_author_invocation $arguments;;
|
||||||
"-a") video_author_invocation $arguments;;
|
"a") video_author_invocation $arguments;;
|
||||||
"--title") video_title_invocation $arguments;;
|
"title") video_title_invocation $arguments;;
|
||||||
"-t") video_title_invocation $arguments;;
|
"t") video_title_invocation $arguments;;
|
||||||
"--help") video_usage;;
|
"help") video_usage;;
|
||||||
"-h") video_usage;;
|
"h") video_usage;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,12 +86,12 @@ function video_invocation {
|
||||||
|
|
||||||
# Show playlist usage message
|
# Show playlist usage message
|
||||||
function playlist_usage {
|
function playlist_usage {
|
||||||
echo "usage: yt playlist --(s)earch [...]"
|
echo "usage: yt playlist (s)earch [...]"
|
||||||
echo " yt playlist --(l)ist [...]"
|
echo " yt playlist (l)ist [...]"
|
||||||
echo " yt playlist --(t)itle [...]"
|
echo " yt playlist (t)itle [...]"
|
||||||
echo " yt playlsit --(a)uthor [...]"
|
echo " yt playlsit (a)uthor [...]"
|
||||||
echo " yt playlist --(v)iews [...]"
|
echo " yt playlist (v)iews [...]"
|
||||||
echo " yt playlist --(D)ate [...]"
|
echo " yt playlist (D)ate [...]"
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,20 +107,20 @@ function playlist_invocation {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$command" in
|
case "$command" in
|
||||||
"--search") playlist_search_invocation $arguments;;
|
"search") playlist_search_invocation $arguments;;
|
||||||
"-s") playlist_search_invocation $arguments;;
|
"s") playlist_search_invocation $arguments;;
|
||||||
"--views") playlist_views_invocation $arguments;;
|
"views") playlist_views_invocation $arguments;;
|
||||||
"-v") playlist_views_invocation $arguments;;
|
"v") playlist_views_invocation $arguments;;
|
||||||
"--author") playlist_author_invocation $arguments;;
|
"author") playlist_author_invocation $arguments;;
|
||||||
"-a") playlist_author_invocation $arguments;;
|
"a") playlist_author_invocation $arguments;;
|
||||||
"--date") playlist_uploaded_invocation $arguments;;
|
"date") playlist_uploaded_invocation $arguments;;
|
||||||
"-D") playlist_uploaded_invocation $arguments;;
|
"D") playlist_uploaded_invocation $arguments;;
|
||||||
"--title") playlist_title_invocation $arguments;;
|
"title") playlist_title_invocation $arguments;;
|
||||||
"-t") playlist_title_invocation $arguments;;
|
"t") playlist_title_invocation $arguments;;
|
||||||
"--list") playlist_list_invocation $arguments;;
|
"list") playlist_list_invocation $arguments;;
|
||||||
"-l") playlist_list_invocation $arguments;;
|
"l") playlist_list_invocation $arguments;;
|
||||||
"--help") playlist_usage;;
|
"help") playlist_usage;;
|
||||||
"-h") playlist_usage;;
|
"h") playlist_usage;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
ytlib.sh
2
ytlib.sh
|
@ -380,7 +380,7 @@ function result_format_big {
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
# playlsit metadata
|
# playlist metadata
|
||||||
|
|
||||||
# STRING --> STRING
|
# STRING --> STRING
|
||||||
# Get the title of a playlist, from HTML.
|
# Get the title of a playlist, from HTML.
|
||||||
|
|
Reference in New Issue