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 @@ - - -