From 8e217bcf58c1d397abf52e9b3793f7fabab81995 Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 10 Jan 2017 18:49:11 -0500 Subject: [PATCH] FIX: when extracting cover for issue details, will now return an ordered list of the files within the archive instead of random order --- mylar/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylar/helpers.py b/mylar/helpers.py index 84d1f9f9..22001bd5 100755 --- a/mylar/helpers.py +++ b/mylar/helpers.py @@ -1389,7 +1389,7 @@ def IssueDetails(filelocation, IssueID=None): try: 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() if tmp_infile == '': pass