diff options
Diffstat (limited to 'home/.local/bin/tokodi')
| -rwxr-xr-x | home/.local/bin/tokodi | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/home/.local/bin/tokodi b/home/.local/bin/tokodi deleted file mode 100755 index ce945de..0000000 --- a/home/.local/bin/tokodi +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env sh - -if [ -z "$1" ]; then - url=$(wl-paste) -elif [ "$1" = "-" ]; then - read -r url -else - url="$1" -fi - -case "$url" in -*.m3u8*) - prefix='' - ;; -*) - prefix='plugin://plugin.video.sendtokodi/?' - ;; -esac - -payload="$(printf '{"jsonrpc":"2.0", "id": 1, "method":"Player.Open","params": {"item": {"file":"%s%s"}}}' "$prefix" "$url")" - -curl -u kodi:kodi 'http://ruiflix.pulpo:8080/jsonrpc' -X POST --data-raw "$payload" -H 'Content-Type: application/json' |
