mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7f81403584
commit
461a358d7a
@ -27,7 +27,7 @@ def get_preferred_format(metadata, output_format, input_formats):
|
||||
formats = (metadata and metadata.formats) or v'[]'
|
||||
formats = [f.toUpperCase() for f in formats]
|
||||
input_formats = {x.toUpperCase():True for x in input_formats}
|
||||
fmt = output_format
|
||||
fmt = 'EPUB' if output_format == 'PDF' else output_format
|
||||
if formats.length and formats.indexOf(fmt) == -1:
|
||||
for q in sorted(formats, key=sort_formats_key):
|
||||
if input_formats[q]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user