mirror of
https://github.com/RustyRaptor/doge_cogs.git
synced 2026-12-03 15:55:21 -07:00
`[p]watch <title>` asks the home lab's media-preload service to cache a movie, a season, some episodes or the next N unwatched episodes, and keeps a progress message (with a Cancel button) updated until done. `link`/`unlink` store a Jellyfin user name for "next"; `status` and `cancel` work on request ids. The API client in clients/media-preload-client is generated from the service's OpenAPI spec with openapi-python-client (`mise run generate-client`); the cog installs it from this repo via info.json. Also: ruff target py311 (Red 3.5's Python), a dev group with the client, pytest, ruff and ty, and mise tasks. Lint and type checks cover the new cog; doge_alignment is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GUebqhE8dK19vyn4Ct5g1L
16 lines
953 B
JSON
16 lines
953 B
JSON
{
|
|
"author": ["GodEmperorDoge"],
|
|
"name": "Watch",
|
|
"short": "Preload a movie or episodes so they stream fast.",
|
|
"description": "Ask the home lab's media-preload service to cache a movie, a season, some episodes, or your next unwatched episodes, and follow the download in the channel.",
|
|
"install_msg": "Set the API token with the PRELOAD_BOT_TOKEN environment variable or `[p]set api media_preload token,<token>` (and url,<url> if it isn't http://host.containers.internal:8125).",
|
|
"end_user_data_statement": "This cog stores the Jellyfin user name you link with `watch link`, to find your next unwatched episodes. `watch unlink` deletes it.",
|
|
"requirements": [
|
|
"media-preload-client @ git+https://github.com/RustyRaptor/doge_cogs.git#subdirectory=clients/media-preload-client"
|
|
],
|
|
"min_bot_version": "3.5.0",
|
|
"min_python_version": [3, 11, 0],
|
|
"tags": ["media", "jellyfin", "webdav"],
|
|
"type": "COG"
|
|
}
|