docs(services): show METADATA_PROVIDER in the EXAMPLE service template

This commit is contained in:
imSp4rky
2026-11-29 10:13:34 -07:00
parent 36fd0033ce
commit d4af4c77f4
+6
View File
@@ -80,6 +80,10 @@ class EXAMPLE(Service):
# ANIME: this catalogue is anime, so metadata lookups ask AniList first. Set it False (the # 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(). # default) on a mixed catalogue and flag the anime titles individually in get_titles().
ANIME = True ANIME = True
# METADATA_PROVIDER: the metadata provider this catalogue resolves through ("tmdb", "tvdb", ...).
# Lookups ask it first, ahead of AniList. It never adds one that the user's metadata_providers
# leaves out. Set it when one index matches the names this service gives better than the default order.
METADATA_PROVIDER = None
# ANONYMOUS_SEARCH: set True only when search() needs no login and no state from # ANONYMOUS_SEARCH: set True only when search() needs no login and no state from
# authenticate(). A search then skips the cookie load, authenticate() and the cookie save. # authenticate(). A search then skips the cookie load, authenticate() and the cookie save.
ANONYMOUS_SEARCH = False ANONYMOUS_SEARCH = False
@@ -306,6 +310,8 @@ class EXAMPLE(Service):
# Per-title override of the ANIME class attr, for a mixed catalogue. Leave it # 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. # None (the default) and the title inherits the service's ANIME value.
episodes[-1].anime = metadata.get("category") == "anime" episodes[-1].anime = metadata.get("category") == "anime"
# Per-title override of METADATA_PROVIDER. None inherits the class value.
# episodes[-1].metadata_provider = "tvdb"
return Series(episodes) return Series(episodes)
# DEFAULT (shown live): this service needs a SEPARATE manifest per codec/range, # DEFAULT (shown live): this service needs a SEPARATE manifest per codec/range,