aboutsummaryrefslogtreecommitdiff
path: root/src/watch_command.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch_command.sh')
-rw-r--r--src/watch_command.sh4
1 files changed, 4 insertions, 0 deletions
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")"