mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5300 (png and jpg to cbr/cbz conversion issue)
This commit is contained in:
parent
da067aac7f
commit
a07f7b396b
@ -13,7 +13,8 @@ from calibre.customize import FileTypePlugin
|
|||||||
|
|
||||||
def is_comic(list_of_names):
|
def is_comic(list_of_names):
|
||||||
extensions = set([x.rpartition('.')[-1].lower() for x in list_of_names])
|
extensions = set([x.rpartition('.')[-1].lower() for x in list_of_names])
|
||||||
return len(extensions) == 1 and iter(extensions).next() in ('jpg', 'jpeg', 'png')
|
comic_extensions = set(['jpg', 'jpeg', 'png'])
|
||||||
|
return len(extensions - comic_extensions) == 0
|
||||||
|
|
||||||
class ArchiveExtract(FileTypePlugin):
|
class ArchiveExtract(FileTypePlugin):
|
||||||
name = 'Archive Extract'
|
name = 'Archive Extract'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user