Added bookeen to the reader for "simple theming" (#1861)
This commit is contained in:
parent
834edadc28
commit
c06754975e
5
cps.py
5
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 <http://www.gnu.org/licenses/>.
|
||||
#try:
|
||||
#from gevent import monkey
|
||||
#monkey.patch_all()
|
||||
#except ImportError:
|
||||
# pass
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user