mirror of https://github.com/evilhero/mylar
FIX: when extracting cover for issue details, will now return an ordered list of the files within the archive instead of random order
This commit is contained in:
parent
cc231a416c
commit
8e217bcf58
|
@ -1389,7 +1389,7 @@ def IssueDetails(filelocation, IssueID=None):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with zipfile.ZipFile(dstlocation, 'r') as inzipfile:
|
with zipfile.ZipFile(dstlocation, 'r') as inzipfile:
|
||||||
for infile in inzipfile.namelist():
|
for infile in sorted(inzipfile.namelist()):
|
||||||
tmp_infile = re.sub("[^0-9]","", infile).strip()
|
tmp_infile = re.sub("[^0-9]","", infile).strip()
|
||||||
if tmp_infile == '':
|
if tmp_infile == '':
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue