From d3ec66525df6bd90906d81abb40cacdd743a4fef Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 18 Jan 2024 04:33:22 +0000 Subject: feat: episodes and watch sub-commands --- src/watch_command.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/watch_command.sh (limited to 'src/watch_command.sh') diff --git a/src/watch_command.sh b/src/watch_command.sh new file mode 100644 index 0000000..6c94bf0 --- /dev/null +++ b/src/watch_command.sh @@ -0,0 +1,4 @@ +xdg-open "$(get "/stream/$(get "/episodes/${args[id]}" | + jq -r ".[] | .id" | + head -n 1 | + sed -E 's/-episode-[0-9]+$//')-episode-1" | jq -r ".plyr.default")" -- cgit v1.2.3