Adding Smashwords identifier
This commit is contained in:
@@ -155,6 +155,8 @@ class Identifiers(Base):
|
|||||||
return "StoryGraph"
|
return "StoryGraph"
|
||||||
elif format_type == "ebooks":
|
elif format_type == "ebooks":
|
||||||
return "eBooks.com"
|
return "eBooks.com"
|
||||||
|
elif format_type == "smashwords":
|
||||||
|
return "Smashwords"
|
||||||
if format_type == "lubimyczytac":
|
if format_type == "lubimyczytac":
|
||||||
return "Lubimyczytac"
|
return "Lubimyczytac"
|
||||||
if format_type == "databazeknih":
|
if format_type == "databazeknih":
|
||||||
@@ -202,6 +204,8 @@ class Identifiers(Base):
|
|||||||
return "https://app.thestorygraph.com/books/{0}".format(self.val)
|
return "https://app.thestorygraph.com/books/{0}".format(self.val)
|
||||||
elif format_type == "ebooks":
|
elif format_type == "ebooks":
|
||||||
return "https://www.ebooks.com/en-us/book/{0}".format(self.val)
|
return "https://www.ebooks.com/en-us/book/{0}".format(self.val)
|
||||||
|
elif format_type == "smashwords":
|
||||||
|
return "https://www.smashwords.com/books/view/{0}".format(self.val)
|
||||||
elif self.val.lower().startswith("javascript:"):
|
elif self.val.lower().startswith("javascript:"):
|
||||||
return quote(self.val)
|
return quote(self.val)
|
||||||
elif self.val.lower().startswith("data:"):
|
elif self.val.lower().startswith("data:"):
|
||||||
|
|||||||
Reference in New Issue
Block a user