From d4af4c77f4c68ac64d4c43b53b43c836d8c37b98 Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Sun, 29 Nov 2026 10:13:34 -0700 Subject: [PATCH] docs(services): show METADATA_PROVIDER in the EXAMPLE service template --- unshackle/services/EXAMPLE/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unshackle/services/EXAMPLE/__init__.py b/unshackle/services/EXAMPLE/__init__.py index cf61f0df9..d02150c0c 100644 --- a/unshackle/services/EXAMPLE/__init__.py +++ b/unshackle/services/EXAMPLE/__init__.py @@ -80,6 +80,10 @@ class EXAMPLE(Service): # 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 + # 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 # authenticate(). A search then skips the cookie load, authenticate() and the cookie save. ANONYMOUS_SEARCH = False @@ -306,6 +310,8 @@ class EXAMPLE(Service): # 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" + # Per-title override of METADATA_PROVIDER. None inherits the class value. + # episodes[-1].metadata_provider = "tvdb" return Series(episodes) # DEFAULT (shown live): this service needs a SEPARATE manifest per codec/range,