docs(service): make the Service docstring the one table of class variables and attributes

This commit is contained in:
imSp4rky
2026-12-04 18:01:08 -07:00
parent 8d3ae1151e
commit ec6a48f8c0
6 changed files with 108 additions and 243 deletions
-2
View File
@@ -70,13 +70,11 @@ class EXAMPLE(Service):
# ALIASES: extra CLI tags that resolve to this service (e.g. `dl EX ...`).
ALIASES = ("EX", "DOMAIN")
# GEOFENCE: regions required; the framework warns if the proxy exit region is not one of them.
GEOFENCE = ("US", "GB")
# GEOBLOCK: the negative form; regions where the service refuses to work, all others allowed.
# GEOBLOCK = ("GB",)
# TITLE_RE: named groups (?P<...>) parsed in get_titles(). Accepts URL or bare id.
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().