mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-26 02:41:27 +00:00
Compare commits
2 commits
125c76bbed
...
bd5a14234f
Author | SHA1 | Date | |
---|---|---|---|
localhost_frssoft | bd5a14234f | ||
localhost_frssoft | 08f64d737a |
|
@ -19,6 +19,7 @@
|
||||||
"Karaoke",
|
"Karaoke",
|
||||||
"Latin",
|
"Latin",
|
||||||
"Metal",
|
"Metal",
|
||||||
|
"Orchestral",
|
||||||
"Opera",
|
"Opera",
|
||||||
"Pop",
|
"Pop",
|
||||||
"Progressive",
|
"Progressive",
|
||||||
|
|
|
@ -324,6 +324,20 @@ case "$choice" in
|
||||||
echo ''
|
echo ''
|
||||||
fi
|
fi
|
||||||
clear
|
clear
|
||||||
|
export auth="$(jj -i .auth.json "$(echo $instance | sed 's/\./\\\./g')")"
|
||||||
|
if [ -n "$auth" ]; then
|
||||||
|
default_curl_opt()
|
||||||
|
{
|
||||||
|
curl -s --compressed -H "Authorization: Bearer $auth" $1
|
||||||
|
}
|
||||||
|
listen_token=$(default_curl_opt "$instance_point/users/me" | jj tokens.listen)
|
||||||
|
echo '+Authorized account+'
|
||||||
|
else
|
||||||
|
default_curl_opt()
|
||||||
|
{
|
||||||
|
curl -s --compressed $1
|
||||||
|
}
|
||||||
|
fi
|
||||||
get_all_avalaible_count_tracks
|
get_all_avalaible_count_tracks
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue