1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-06-25 06:33:17 +00:00

Fix #1386 (Add asin to recognized identifiers)

This commit is contained in:
Ozzieisaacs 2020-05-12 14:44:57 +02:00
parent f7269d8df2
commit b48afa38ac

View File

@ -100,7 +100,7 @@ class Identifiers(Base):
return self.type
def __repr__(self):
if self.type == "amazon":
if self.type == "amazon" or self.type == "asin":
return u"https://amzn.com/{0}".format(self.val)
elif self.type == "isbn":
return u"https://www.worldcat.org/isbn/{0}".format(self.val)