From 4e28c3cadb8a0524bc3cc634c982cec48b6987aa Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Tue, 15 Sep 2020 13:41:01 +0700 Subject: [PATCH] add Litres references --- cps/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps/db.py b/cps/db.py index c3d62a220..cc156942b 100644 --- a/cps/db.py +++ b/cps/db.py @@ -142,6 +142,8 @@ class Identifiers(Base): return u"https://www.kobo.com/ebook/{0}".format(self.val) elif format_type == "lubimyczytac": return u" https://lubimyczytac.pl/ksiazka/{0}".format(self.val) + elif format_type == "litres": + return u"https://www.litres.ru/{0}".format(self.val) elif format_type == "url": return u"{0}".format(self.val) else: