mirror of
https://gitea.invidious.io/iv-org/youtube-utils.git
synced 2024-08-15 00:53:16 +00:00
api-helper: Add global list of all available clients
This commit is contained in:
parent
8d4d6244fb
commit
158f55f755
1 changed files with 22 additions and 8 deletions
|
@ -5,6 +5,24 @@
|
|||
# more intuitive than `-n`
|
||||
|
||||
|
||||
#
|
||||
# Globals
|
||||
#
|
||||
|
||||
ALL_CLIENTS="web
|
||||
web-embed
|
||||
web-mobile
|
||||
android
|
||||
android-embed
|
||||
apple-ios
|
||||
tv-html5
|
||||
tv-html5-embed"
|
||||
|
||||
|
||||
#
|
||||
# Utility functions
|
||||
#
|
||||
|
||||
print_usage()
|
||||
{
|
||||
(
|
||||
|
@ -41,14 +59,10 @@ print_clients()
|
|||
(
|
||||
echo ""
|
||||
echo "Available clients:"
|
||||
echo " - web"
|
||||
echo " - web-embed"
|
||||
echo " - web-mobile"
|
||||
echo " - android"
|
||||
echo " - android-embed"
|
||||
echo " - apple-ios"
|
||||
echo " - tv-html5"
|
||||
echo " - tv-html5-embed"
|
||||
|
||||
for client in $ALL_CLIENTS; do
|
||||
echo " - $client"
|
||||
done
|
||||
) >&2
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue