From 77d264bd25e0556eb3680b845de22b62d2ebd3e6 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Fri, 28 Sep 2018 09:03:08 +0100 Subject: [PATCH] Add APA websites to URL patterns where client is known to be embedded. URL patterns provided by Kadidra McCloud at APA. Fixes https://github.com/hypothesis/product-backlog/issues/814 --- bouncer/embed_detector.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bouncer/embed_detector.py b/bouncer/embed_detector.py index 3eb770ca..33923a4f 100644 --- a/bouncer/embed_detector.py +++ b/bouncer/embed_detector.py @@ -10,8 +10,15 @@ # Patterns are shell-style wildcards ('*' matches any number of chars, '?' # matches a single char). PATTERNS = [ + # Hypothesis websites. "h.readthedocs.io/*", "web.hypothes.is/blog/*", + + # Publisher partners: + + # American Psychological Organization. + "psycnet.apa.org/fulltext/*", + "awspntest.apa.org/fulltext/*", ] COMPILED_PATTERNS = [re.compile(fnmatch.translate(pat)) for pat in PATTERNS]