This is a simple worker/static file generator that proxies the schedule for KHL TV/KHL Prime. As a file generator, it makes available two files for each locale: the raw endpoint response (.json) and an opinionated EPG file (.xml). It is opinionated in that it attempts to “normalize” some programmes (games) in order to make the guide more compatible with DVR systems.
Use the guide files directly in your DVR program (such as Dispatcharr), or use the raw files to build your own.
To install dependencies:
bun install
To run a development server with wrangler (no files generated):
bun dev
Or, generate static files for each language in public/ instead:
bun generate
This project was created using bun init in bun v1.3.14. Bun is a fast all-in-one JavaScript runtime.