mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-11-06 18:58:01 +00:00
be7d0bc53535afc4fbed20bd325dec925dadc316
- 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>
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:
- api url: http://localhost:3000/api
- video url: http://localhost:3000
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
Languages
TypeScript
91.3%
HTML
8.3%
Shell
0.3%