From 83db0f9ad57b58dd7951eb4a9625e12fb212d9ca Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Wed, 18 Jul 2018 15:36:51 -0400 Subject: [PATCH] Render 'url:' ID type as a link Calibre allows 'url:' as a kind of book identifier and shows it in the UI as a link; this change makes calibre-web do the same. --- cps/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps/db.py b/cps/db.py index 37363af8..779183b0 100755 --- a/cps/db.py +++ b/cps/db.py @@ -112,6 +112,8 @@ class Identifiers(Base): 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) + elif self.type == "url": + return u"{0}".format(self.val) else: return u""