aboutsummaryrefslogtreecommitdiff
path: root/src/watch_command.sh
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-18 04:33:22 -0800
committerFuwn <[email protected]>2024-01-18 04:33:26 -0800
commitd2596243e3cffd356e02b2697c5902bc3fe03d74 (patch)
treeb62399bf609846cad5fba8214924c45268ab417d /src/watch_command.sh
parentfeat(bashly): add descriptions (diff)
downloadtama-d2596243e3cffd356e02b2697c5902bc3fe03d74.tar.xz
tama-d2596243e3cffd356e02b2697c5902bc3fe03d74.zip
feat: episodes and watch sub-commands
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")"