mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 07:36:07 +01:00
Fixes for manual generation failures
This commit is contained in:
parent
47218173c0
commit
cc368c05ca
2 changed files with 6 additions and 3 deletions
|
|
@ -211,8 +211,8 @@ class Source(Plugin):
|
|||
#: Set this to True if your plugin returns HTML formatted comments
|
||||
has_html_comments = False
|
||||
|
||||
#: Setting this to True means that the browser object will add
|
||||
#: Accept-Encoding: gzip to all requests. This can speedup downloads
|
||||
#: Setting this to True means that the browser object will indicate
|
||||
#: that it supports gzip transfer encoding. This can speedup downloads
|
||||
#: but make sure that the source actually supports gzip transfer encoding
|
||||
#: correctly first
|
||||
supports_gzip_transfer_encoding = False
|
||||
|
|
|
|||
|
|
@ -156,7 +156,10 @@ def retranslate_help(self):
|
|||
if opt.help:
|
||||
opt.help = t(opt.help)
|
||||
if opt.name == 'use_primary_find_in_search':
|
||||
opt.help = opt.help.format(u'ñ')
|
||||
h = opt.help
|
||||
if isinstance(h, bytes):
|
||||
h = h.decode('utf-8', 'replace')
|
||||
opt.help = h.format(u'ñ')
|
||||
|
||||
def option_parser(self, user_defaults=None, usage='', gui_mode=False):
|
||||
from calibre.utils.config import OptionParser
|
||||
|
|
|
|||
Loading…
Reference in a new issue