From fda0ab1e863cf2682eec12cf675e39dffc61cea7 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 1 Dec 2019 12:36:55 +0100 Subject: [PATCH] FIx for (#1092 listening to mp3 not working) --- cps/editbooks.py | 2 +- cps/templates/listenmp3.html | 94 ------------------------------------ 2 files changed, 1 insertion(+), 95 deletions(-) diff --git a/cps/editbooks.py b/cps/editbooks.py index f8431725..f0156f71 100644 --- a/cps/editbooks.py +++ b/cps/editbooks.py @@ -567,7 +567,7 @@ def upload(): filepath = os.path.join(config.config_calibre_dir, author_dir, title_dir) saved_filename = os.path.join(filepath, title_dir + meta.extension.lower()) - if unicode(title) != u'Unknown' and unicode(authr) != u'Unknown': + if title != u'Unknown' and authr != u'Unknown': entry = helper.check_exists_book(authr, title) if entry: book_html = flash(_(u"Uploaded book probably exists in the library, consider to change before upload new: ") diff --git a/cps/templates/listenmp3.html b/cps/templates/listenmp3.html index 0abc289d..8113c759 100644 --- a/cps/templates/listenmp3.html +++ b/cps/templates/listenmp3.html @@ -17,11 +17,6 @@ - - -