From 6fcd65b4ce5881adf982b4fa3bd65e108637c40a Mon Sep 17 00:00:00 2001 From: idalin Date: Mon, 16 Jan 2017 11:14:49 +0800 Subject: [PATCH] added identifier for Douban --- cps/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps/db.py b/cps/db.py index 4ba16da7..1ca1c8cb 100755 --- a/cps/db.py +++ b/cps/db.py @@ -110,6 +110,8 @@ class Identifiers(Base): return u"http://dx.doi.org/{0}".format(self.val) elif self.type == "goodreads": return u"http://www.goodreads.com/book/show/{0}".format(self.val) + elif self.type == "douban": + return u"https://book.douban.com/subject/{0}".format(self.val) else: return u""