Jurgis SakalauskasandClaude Opus 5.5 be7d0bc535 add shared watch state, continue watching and new main menu
- watch_state table: resume point, watched, play count, last played per file,
  shared by all clients (Kodi plugin, Android TV app)
- POST/GET /api/state/:fileId for players' progress reports (watched at 90% or
  on end; late resends carry `at` and lose to newer state)
- listings carry watch state (files: playcount, resume, lastplayed; shows and
  seasons: watched/total episodes), episodes sorted by season/episode
- all/continue: unfinished files and next episodes, latest activity first
- context menus: mark (un)watched for a file, season or show; hide from
  continue watching
- main menu: Continue watching, Movies, Shows, scans (Torr/LRT unlisted)
- DATA_ROOT env overrides /srv/data for local runs outside docker

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:01:39 +03:00
2023-10-30 09:10:53 +02:00
2022-12-08 15:34:49 +02:00
2023-08-04 16:06:47 +03:00
2023-11-03 11:15:45 +02:00
2023-08-04 16:06:47 +03:00
2023-11-09 11:42:05 +02:00
2023-07-07 16:12:29 +03:00
2023-10-30 11:30:16 +02:00
2023-10-30 11:30:16 +02:00
2023-11-03 11:15:45 +02:00

An API server for personal KODI plugin.

Description

A rewrite attempt from "vanilla" node.js into framework based (Nest.js).

Running the app

$ cp .env.example .env

# edit .env file to match your environment
# make sure all folders exists

# start docker containers
$ docker-compose up -d

visit http://localhost:3000/if (or whatever port you have provided in .env file) KODI plugin should be able to connect to this server with the following settings:

Migrations (run inside docker container)

# enter docker container
docker exec -it kodi-api-server_server_1 bash

# create migration
$ npm run typeorm:create-migration -name=CreateFilesTable

# run migration
$ npm run typeorm:run-migrations

Test

this app is not tested 😞

License

No licence

S
Description
No description provided
Readme
490 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 91.3%
HTML 8.3%
Shell 0.3%