1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-09-10 23:06:01 +00:00

Added support for storgraph: identifiers

This commit is contained in:
Jayson Rhynas
2025-03-18 11:51:43 -04:00
parent efc7ce31d2
commit bc0e218e73

View File

@@ -151,6 +151,8 @@ class Identifiers(Base):
return "ISSN"
elif format_type == "isfdb":
return "ISFDB"
elif format_type == "storygraph":
return "StoryGraph"
if format_type == "lubimyczytac":
return "Lubimyczytac"
if format_type == "databazeknih":
@@ -194,6 +196,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 == "storygraph":
return "https://app.thestorygraph.com/books/{0}".format(self.val)
elif self.val.lower().startswith("javascript:"):
return quote(self.val)
elif self.val.lower().startswith("data:"):