Update readme

Begin logging
Account for fb2 books without covers
This commit is contained in:
BasioMeusPuga
2019-01-19 01:19:58 +05:30
parent 5e3987dc04
commit 506c458544
25 changed files with 138 additions and 27 deletions

View File

@@ -15,14 +15,20 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
import logging
import urllib.request
from PyQt5 import QtWidgets, QtCore, QtGui
logger = logging.getLogger(__name__)
try:
from PyQt5 import QtMultimedia
multimedia_available = True
except ImportError:
print('QtMultimedia not found. Sounds will not play.')
error_string = 'QtMultimedia not found. Sounds will not play.'
print(error_string)
logger.error(error_string)
multimedia_available = False
from lector.resources import definitions