mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression that broke downloading news when output format is set to PDF
This commit is contained in:
parent
4751aa1286
commit
121469daa5
@ -291,7 +291,7 @@ def fetch_scheduled_recipe(arg): # {{{
|
|||||||
from calibre.customize.ui import plugin_for_output_format
|
from calibre.customize.ui import plugin_for_output_format
|
||||||
p = plugin_for_output_format('pdf')
|
p = plugin_for_output_format('pdf')
|
||||||
for opt in p.options:
|
for opt in p.options:
|
||||||
recs.append(opt.name, pdf.get(opt.name, opt.recommended_value), OptionRecommendation.HIGH)
|
recs.append((opt.option.name, pdf.get(opt.option.name, opt.recommended_value), OptionRecommendation.HIGH))
|
||||||
|
|
||||||
args = [arg['recipe'], pt.name, recs]
|
args = [arg['recipe'], pt.name, recs]
|
||||||
if arg['username'] is not None:
|
if arg['username'] is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user