mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs(service): make the Service docstring the one table of class variables and attributes
This commit is contained in:
@@ -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().
|
||||
|
||||
Reference in New Issue
Block a user