mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-20 07:45:21 +01:00
Change print to logger calls because of caliber pipe errors.
This commit is contained in:
parent
3410de5473
commit
4a99b00a26
2 changed files with 5 additions and 2 deletions
|
|
@ -2127,7 +2127,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction):
|
|||
# add.
|
||||
book['anthology_meta_list'][k]=True
|
||||
|
||||
print("book['url']:%s"%book['url'])
|
||||
logger.debug("book['url']:%s"%book['url'])
|
||||
configuration = get_ffdl_config(book['url'],fileform)
|
||||
if existingbook:
|
||||
book['title'] = deftitle = existingbook['title']
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ __docformat__ = 'restructuredtext en'
|
|||
from StringIO import StringIO
|
||||
from ConfigParser import ParsingError
|
||||
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from calibre_plugins.fanfictiondownloader_plugin.fanficdownloader import adapters, exceptions
|
||||
from calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.configurable import Configuration
|
||||
from calibre_plugins.fanfictiondownloader_plugin.prefs import prefs
|
||||
|
|
@ -32,7 +35,7 @@ def get_ffdl_config(url,fileform="epub",personalini=None):
|
|||
try:
|
||||
site = adapters.getConfigSectionFor(url)
|
||||
except Exception as e:
|
||||
print("Failed trying to get ini config for url(%s): %s, using section [%s] instead"%(url,e,site))
|
||||
logger.debug("Failed trying to get ini config for url(%s): %s, using section [%s] instead"%(url,e,site))
|
||||
configuration = Configuration(site,fileform)
|
||||
configuration.readfp(StringIO(get_resources("plugin-defaults.ini")))
|
||||
configuration.readfp(StringIO(personalini))
|
||||
|
|
|
|||
Loading…
Reference in a new issue