mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-05 17:46:22 +00:00
Added Google Books and Kobo links (#189)
* Added Google Books and Kobo links * International link to google
This commit is contained in:
parent
4259aa69df
commit
b6fccbd486
@ -81,6 +81,10 @@ class Identifiers(Base):
|
|||||||
return u"DOI"
|
return u"DOI"
|
||||||
elif self.type == "goodreads":
|
elif self.type == "goodreads":
|
||||||
return u"Goodreads"
|
return u"Goodreads"
|
||||||
|
elif self.type == "google":
|
||||||
|
return u"Google Books"
|
||||||
|
elif self.type == "kobo":
|
||||||
|
return u"Kobo"
|
||||||
else:
|
else:
|
||||||
return self.type
|
return self.type
|
||||||
|
|
||||||
@ -95,6 +99,10 @@ class Identifiers(Base):
|
|||||||
return u"http://www.goodreads.com/book/show/{0}".format(self.val)
|
return u"http://www.goodreads.com/book/show/{0}".format(self.val)
|
||||||
elif self.type == "douban":
|
elif self.type == "douban":
|
||||||
return u"https://book.douban.com/subject/{0}".format(self.val)
|
return u"https://book.douban.com/subject/{0}".format(self.val)
|
||||||
|
elif self.type == "google":
|
||||||
|
return u"https://books.google.com/books?id={0}".format(self.val)
|
||||||
|
elif self.type == "kobo":
|
||||||
|
return u"https://www.kobo.com/ebook/{0}".format(self.val)
|
||||||
else:
|
else:
|
||||||
return u""
|
return u""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user