anilist custom list provider for sonarr/radarr
Converts an Anilist user watching list to a custom list format which *arr apps support.
It works by fetching the user info directly from Anilist thanks to its API, and converts the IDs using community-provided mappings.
Check out API details either directly on the source Swagger definition or the generated online version.
Clone the repository and use go run ./cmd/handler/... to get the REST API up.
Explain how to run the automated tests for this system.
Configuration in general is a WIP. The code supports distinct storage and cache options and has built-in support for different caches and stores. The handler needs flags/configuration file support to allow switching at runtime.
Implemented solutions:
- Cache
- Badger
- Bolt (no TTL support tho)
- Redis
- Store
- Badger
- SQL (model generated for SQLite, should work for others but YMMV)
The handler binary is statically compiled and serves both the REST API and the
telemetry to an OTLP endpoint. Extra requirements depend on which storage and
cache technologies you've chosen; e.g. using SQLite/Bolt requires a database
file. The Docker image provided contains the handler alone, for instance.
- Golang - Base language
- Chi - net/HTTP-compatible router that doesn't suck
- genqlient - type-safe GraphQL client generator
- Open Telemetry - Observability
- @wwmoraes - Idea & Initial work
- Anilist for their great service and API https://anilist.gitbook.io/anilist-apiv2-docs/
- The community for their efforts to map IDs between services