fix error message for empty .cbz

This commit is contained in:
AppleTheGolden 2025-10-11 18:13:55 +02:00
parent e9c855e1f8
commit f514de44f6
No known key found for this signature in database
GPG key ID: F6AC8A62154C42AA

View file

@ -168,12 +168,12 @@ def au_unpk(
znil = [x for x in znil if "cover" in x[0]] or znil
znil = [x for x in znil if CBZ_01.search(x[0])] or znil
t = "cbz: %d files, %d hits" % (nf, len(znil))
if not znil:
raise Exception("no images inside cbz")
using = sorted(znil)[0][1].filename
if znil:
t += ", using " + using
log(t)
if not znil:
raise Exception("no images inside cbz")
fi = zf.open(using)
elif pk == "epub":