diff options
author | metamuffin <metamuffin@disroot.org> | 2024-04-13 16:09:36 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-04-13 16:09:36 +0200 |
commit | e503d5af484fb55a07125b3708ba658606e56c5d (patch) | |
tree | 25c0a081cdc651c69b44af88c6ac37c44d416188 /web/native-protocol/jellynative | |
parent | 489cd4d833fb106d4a5257532b340969805f3f5c (diff) | |
download | jellything-e503d5af484fb55a07125b3708ba658606e56c5d.tar jellything-e503d5af484fb55a07125b3708ba658606e56c5d.tar.bz2 jellything-e503d5af484fb55a07125b3708ba658606e56c5d.tar.zst |
start native player at time
Diffstat (limited to 'web/native-protocol/jellynative')
-rwxr-xr-x | web/native-protocol/jellynative | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/web/native-protocol/jellynative b/web/native-protocol/jellynative index 8694272..51c1c6b 100755 --- a/web/native-protocol/jellynative +++ b/web/native-protocol/jellynative @@ -4,7 +4,6 @@ set protocol $parts[1] set action $parts[3] set secret $parts[4] - function die notify-send -u critical -t 5000 'Jellynative Error' $argv[1] exit 1 @@ -31,19 +30,19 @@ if not test -e $config end set secret (cat $config) -if test $action != show-secret +if test $action != show-secret-v1 if test $secret != $parts[4] die 'Incorrect secret' end end switch $action - case show-secret + case show-secret-v1 notify-send -u low Jellynative "Secret: $secret" - case player - player $parts[5] (string join / $parts[6..]) - case player-fullscreen - player $parts[5] (string join / $parts[6..]) --fullscreen + case player-v2 + player $parts[5] (string join / $parts[7..]) --seek=$parts[6] + case player-fullscreen-v2 + player $parts[5] (string join / $parts[7..]) --fullscreen --start=$parts[6] case '*' die 'Unknown action' end |