From b8aac2b929d5a526e604c38751d63645158bf63e Mon Sep 17 00:00:00 2001 From: Imre NAGY Date: Mon, 10 Jul 2023 13:46:17 +0200 Subject: [PATCH] Handle moly_hu book identifier https://moly.hu/ is a books site with extensive metadata for books in hungarian language. The identifier is used by the calibre Moly.hu metadata source: https://www.mobileread.com/forums/showthread.php?t=193302 --- cps/db.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cps/db.py b/cps/db.py index 710c202f..7b55b44e 100644 --- a/cps/db.py +++ b/cps/db.py @@ -134,10 +134,12 @@ class Identifiers(Base): return "ISSN" elif format_type == "isfdb": return "ISFDB" - if format_type == "lubimyczytac": + elif format_type == "lubimyczytac": return "Lubimyczytac" - if format_type == "databazeknih": + elif format_type == "databazeknih": return "Databáze knih" + elif format_type == "moly_hu": + return "Moly.hu" else: return self.type @@ -171,6 +173,8 @@ class Identifiers(Base): return "http://www.isfdb.org/cgi-bin/pl.cgi?{0}".format(self.val) elif format_type == "databazeknih": return "https://www.databazeknih.cz/knihy/{0}".format(self.val) + elif format_type == "moly_hu": + return "https://moly.hu/konyvek/{0}".format(self.val) elif self.val.lower().startswith("javascript:"): return quote(self.val) else: