From 2b0930fbdea2565e01f451843dddeceef8e9cd42 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:36 +0100 Subject: style(shell): apply shfmt (-i 2 -ci -s) --- dot_local/bin/executable_tokodi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'dot_local/bin/executable_tokodi') diff --git a/dot_local/bin/executable_tokodi b/dot_local/bin/executable_tokodi index ce945de..aec226c 100755 --- a/dot_local/bin/executable_tokodi +++ b/dot_local/bin/executable_tokodi @@ -1,20 +1,20 @@ #!/usr/bin/env sh if [ -z "$1" ]; then - url=$(wl-paste) + url=$(wl-paste) elif [ "$1" = "-" ]; then - read -r url + read -r url else - url="$1" + url="$1" fi case "$url" in -*.m3u8*) - prefix='' - ;; -*) - prefix='plugin://plugin.video.sendtokodi/?' - ;; + *.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")" -- cgit v1.2.3-70-g09d2