Update readme
Begin logging Account for fb2 books without covers
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
import os
|
||||
import pickle
|
||||
import logging
|
||||
import pathlib
|
||||
|
||||
from PyQt5 import QtGui, QtCore
|
||||
@@ -23,6 +24,8 @@ from PyQt5 import QtGui, QtCore
|
||||
from lector import database
|
||||
from lector.models import TableProxyModel, ItemProxyModel
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Library:
|
||||
def __init__(self, parent):
|
||||
@@ -47,7 +50,7 @@ class Library:
|
||||
'LIKE')
|
||||
|
||||
if not books:
|
||||
print('Database returned nothing')
|
||||
logger.error('Database returned nothing')
|
||||
return
|
||||
|
||||
elif mode == 'addition':
|
||||
@@ -320,7 +323,7 @@ class Library:
|
||||
addition_mode = item_metadata['addition_mode']
|
||||
except KeyError:
|
||||
addition_mode = 'automatic'
|
||||
print('Libary: Error setting addition mode for prune')
|
||||
logger.error('Libary: Error setting addition mode for prune')
|
||||
|
||||
if (book_path not in valid_paths and
|
||||
(addition_mode != 'manual' or addition_mode is None)):
|
||||
|
Reference in New Issue
Block a user