diff options
| author | Fuwn <[email protected]> | 2024-01-18 04:33:22 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-18 04:33:26 -0800 |
| commit | d2596243e3cffd356e02b2697c5902bc3fe03d74 (patch) | |
| tree | b62399bf609846cad5fba8214924c45268ab417d /src/watch_command.sh | |
| parent | feat(bashly): add descriptions (diff) | |
| download | tama-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.sh | 4 |
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")" |