feat(metadata)!: replace animeapi with a first-class anilist provider

--anilist supersedes --animeapi (REST: anilist_id); the keyless AniList
GraphQL provider joins the registry with title search, mal: ID lookup,
an ANILIST mkv tag, and the anilist_title_language config option.
Services mark anime via Service.ANIME / Title.anime for anilist-first
metadata resolution with fall-through.
This commit is contained in:
imSp4rky
2026-08-11 16:42:05 -06:00
parent ebb4e74318
commit 72581ba5d2
24 changed files with 794 additions and 196 deletions
+6
View File
@@ -72,6 +72,9 @@ class EXAMPLE(Service):
TITLE_RE = r"^(?:https?://(?:www\.)?domain\.com/details/)?(?P<title_id>[^/?#]+)"
# NO_SUBTITLES: service-level idiom telling the pipeline subs are handled in-band.
NO_SUBTITLES = False
# ANIME: this catalogue is anime, so metadata lookups ask AniList first. Set it False (the
# default) on a mixed catalogue and flag the anime titles individually in get_titles().
ANIME = True
# VAULT_TAG: store/read keys under a different vault namespace than this service's tag.
# Lets sibling services share one key vault. Omit to use the service's own tag.
VAULT_TAG = "DIFFERENT_NAME"
@@ -287,6 +290,9 @@ class EXAMPLE(Service):
# air_date=ep.get("airDate"),
)
)
# Per-title override of the ANIME class attr, for a mixed catalogue. Leave it
# None (the default) and the title inherits the service's ANIME value.
episodes[-1].anime = metadata.get("category") == "anime"
return Series(episodes)
# DEFAULT (shown live): this service needs a SEPARATE manifest per codec/range,