mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
calibredb catalog: Recognize file extensions even when they are not lowercase
This commit is contained in:
parent
1b902b7a68
commit
439da63e81
@ -108,7 +108,7 @@ def main(opts, args, dbctx):
|
||||
raise SystemExit(_('You must specify a catalog output file'))
|
||||
if opts.ids:
|
||||
opts.ids = list(integers_from_string(opts.ids))
|
||||
fmt = args[0].rpartition('.')[-1]
|
||||
fmt = args[0].rpartition('.')[-1].lower()
|
||||
if fmt not in available_catalog_formats():
|
||||
raise SystemExit(
|
||||
_('Cannot generate a catalog in the {} format').format(fmt.upper())
|
||||
|
Loading…
x
Reference in New Issue
Block a user