Skip to content

Commit c6f9337

Browse files
committed
Fix server-side image transcoding
1 parent 23756c0 commit c6f9337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comiclib/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def get_archive_page(request: Request, id: str, path: str, db: Session = Depends
310310
saveto.parent.mkdir(parents=True, exist_ok=True)
311311
if p.is_dir():
312312
convert_image(p / path, saveto)
313-
elif ArchiveFile.support_formats.fullmatch(path.name):
313+
elif ArchiveFile.support_formats.fullmatch(p.name):
314314
with ArchiveFile(p) as z, z.open(path) as f:
315315
convert_image(f, saveto)
316316
else:

0 commit comments

Comments
 (0)