From 360163fbe8ffc5e1830b85c808a397b4556bed3f Mon Sep 17 00:00:00 2001 From: mein Name Date: Mon, 3 Mar 2025 16:37:27 -0500 Subject: [PATCH] fix google books parser when server not in us --- catalog/sites/google_books.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalog/sites/google_books.py b/catalog/sites/google_books.py index 4766add2..0ff31769 100644 --- a/catalog/sites/google_books.py +++ b/catalog/sites/google_books.py @@ -15,9 +15,9 @@ class GoogleBooks(AbstractSite): SITE_NAME = SiteName.GoogleBooks ID_TYPE = IdType.GoogleBooks URL_PATTERNS = [ - r"https://books\.google\.co[^/]+/books\?id=([^&#]+)", - r"https://www\.google\.co[^/]+/books/edition/[^/]+/([^&#?]+)", - r"https://books\.google\.co[^/]+/books/about/[^?]+\?id=([^&#?]+)", + r"https://books\.google\.[^/]+/books\?id=([^&#]+)", + r"https://www\.google\.[^/]+/books/edition/[^/]+/([^&#?]+)", + r"https://books\.google\.[^/]+/books/about/[^?]+\?id=([^&#?]+)", ] WIKI_PROPERTY_ID = "" DEFAULT_MODEL = Edition