mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 15:35:06 +00:00
feat(search): add ANONYMOUS_SEARCH to skip the login for a service
A service that sets the flag gets no cookie load, no authenticate() call and no cookie save on a search, on the CLI and in the REST search handler. /api/services reports it as anonymous_search.
This commit is contained in:
@@ -79,6 +79,9 @@ 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
|
||||
# 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
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user