mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
Don't use polyglot, not included until Calibre3. Remove some debug output.
This commit is contained in:
parent
84a7414981
commit
34a12c48c1
2 changed files with 6 additions and 7 deletions
|
|
@ -1638,13 +1638,12 @@ def question_dialog_all(parent, title, msg, det_msg='', show_copy_button=False,
|
|||
question_cache=None,
|
||||
):
|
||||
|
||||
print(question_cache)
|
||||
# print(question_cache)
|
||||
if isinstance(question_cache,dict) and question_name and question_name in question_cache:
|
||||
return question_cache[question_name]
|
||||
from calibre.gui2.dialogs.message_box import MessageBox
|
||||
from polyglot.builtins import unicode_type
|
||||
|
||||
if not isinstance(skip_dialog_name, unicode_type):
|
||||
if not isinstance(skip_dialog_name, unicode):
|
||||
skip_dialog_name = None
|
||||
try:
|
||||
auto_skip = set(gprefs.get('questions_to_auto_skip', ()))
|
||||
|
|
@ -1681,11 +1680,11 @@ def question_dialog_all(parent, title, msg, det_msg='', show_copy_button=False,
|
|||
|
||||
ret = d.exec_() == d.Accepted
|
||||
|
||||
print("yes/no_all:")
|
||||
print(all_flag)
|
||||
# print("yes/no_all:")
|
||||
# print(all_flag)
|
||||
if all_flag and isinstance(question_cache,dict) and question_name:
|
||||
question_cache[question_name] = (all_flag[0] == 'yes_all')
|
||||
print(question_cache)
|
||||
# print(question_cache)
|
||||
|
||||
if skip_dialog_name is not None and not d.toggle_checkbox.isChecked():
|
||||
auto_skip.add(skip_dialog_name)
|
||||
|
|
|
|||
|
|
@ -1228,7 +1228,7 @@ class FanFicFarePlugin(InterfaceAction):
|
|||
'''
|
||||
|
||||
url = book['url']
|
||||
logger.debug("url:%s"%url)
|
||||
logger.debug("prep_download_loop url:%s"%url)
|
||||
mi = None
|
||||
|
||||
# The current database shown in the GUI
|
||||
|
|
|
|||
Loading…
Reference in a new issue