From c06754975ed11c1691ad81780b6ba27468aa4760 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 2 Apr 2022 11:37:02 +0200 Subject: [PATCH] Added bookeen to the reader for "simple theming" (#1861) --- cps.py | 5 ----- cps/render_template.py | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cps.py b/cps.py index bffdfc7f..2db11e2b 100755 --- a/cps.py +++ b/cps.py @@ -16,11 +16,6 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -#try: -#from gevent import monkey -#monkey.patch_all() -#except ImportError: -# pass import sys import os diff --git a/cps/render_template.py b/cps/render_template.py index 1bc5454d..0c5423c9 100644 --- a/cps/render_template.py +++ b/cps/render_template.py @@ -30,7 +30,8 @@ log = logger.create() def get_sidebar_config(kwargs=None): kwargs = kwargs or [] - simple = bool([e for e in ['kindle', 'tolino', "kobo"] if (e in request.headers.get('User-Agent', "").lower())]) + simple = bool([e for e in ['kindle', 'tolino', "kobo", "bookeen"] + if (e in request.headers.get('User-Agent', "").lower())]) if 'content' in kwargs: content = kwargs['content'] content = isinstance(content, (User, LocalProxy)) and not content.role_anonymous()