Skip to content

Commit cf80555

Browse files
committed
skip __MACOSX
1 parent ab8b057 commit cf80555

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

comiclib/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
mimetypes.add_type('image/jxl', '.jxl')
2525
def is_image(p: Union[str, Path]):
26+
if Path(p).parts[0] == '__MACOSX': return False
2627
mime = mimetypes.guess_type(p, strict=False)[0]
2728
return False if mime is None else mime.partition('/')[0] == 'image'
2829

0 commit comments

Comments
 (0)