A Cloudflare Worker that replaces Sonarr's Skyhook API with TMDB (The Movie Database) data. This worker acts as a middleware to transform TMDB's TV show metadata into a format compatible with Sonarr's requirements.
- Replaces Sonarr's Skyhook API with TMDB data
- Supports TV show search functionality
- Provides show details including seasons and external IDs
- Compatible with Sonarr's API format
- Deployed as a Cloudflare Worker for high availability and low latency
- Node.js (Latest LTS version recommended)
- Cloudflare account
- TMDB API access token
- Clone the repository:
git clone <your-repo-url>
cd skyhook- Install dependencies:
npm install- Copy the example configuration:
cp wrangler.toml.example wrangler.toml- Configure your
wrangler.toml:- Add your Cloudflare account ID
- Configure your TMDB API access token as a secret:
wrangler secret put TMDB_ACCESS_TOKENTo run the worker locally:
npm run devTo deploy to Cloudflare Workers:
npm run deploy- Go to Sonarr's Settings > General
- Under "TV Info Language", select "English"
- Replace the Skyhook URL with your Cloudflare Worker URL
GET /v1/tmdb/search/{language}?term={searchTerm}- Search for TV showsGET /v1/tmdb/shows/{language}/{id}- Get detailed information about a specific show
TMDB_ACCESS_TOKEN: Your TMDB API access token (required)
MIT