Adding eBooks.com identifier type

This commit is contained in:
Asher Max Schweigart
2025-04-14 14:05:26 -04:00
parent 4e67a56ed2
commit 521b46e60d
+4
View File
@@ -153,6 +153,8 @@ class Identifiers(Base):
return "ISFDB"
elif format_type == "storygraph":
return "StoryGraph"
elif format_type == "ebooks":
return "eBooks.com"
if format_type == "lubimyczytac":
return "Lubimyczytac"
if format_type == "databazeknih":
@@ -198,6 +200,8 @@ class Identifiers(Base):
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 format_type == "ebooks":
return "https://www.ebooks.com/en-us/book/{0}".format(self.val)
elif self.val.lower().startswith("javascript:"):
return quote(self.val)
elif self.val.lower().startswith("data:"):