mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
fix error message for empty .cbz
This commit is contained in:
parent
e9c855e1f8
commit
f514de44f6
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue