1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-01-04 21:11:31 +00:00

Assistant understands age restricted profiles

This commit is contained in:
Cadence Ember
2020-04-14 03:51:21 +12:00
parent fff2d74fe3
commit 138145fa05
3 changed files with 12 additions and 1 deletions

View File

@@ -35,6 +35,9 @@ class Assistant {
if (root.identifier === "NOT_FOUND") {
this.lastRequestStatus = constants.symbols.assistant_statuses.OK
reject(constants.symbols.NOT_FOUND)
} else if (root.identifier === "AGE_RESTRICTED") {
this.lastRequestStatus = constants.symbols.assistant_statuses.OK
reject(constants.symbols.extractor_results.AGE_RESTRICTED)
} else if (root.identifier === "NOT_AUTHENTICATED") {
this.lastRequestStatus = constants.symbols.assistant_statuses.NOT_AUTHENTICATED
reject(constants.symbols.assistant_statuses.NOT_AUTHENTICATED)