From b30b0600849dc15de53c9657ddfabc0000487e71 Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 12 Mar 2019 16:08:32 -0400 Subject: [PATCH] FIX: Yo O. Fix Yo Shiet. --- mylar/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylar/helpers.py b/mylar/helpers.py index 4fdc9aa0..bdda71f9 100755 --- a/mylar/helpers.py +++ b/mylar/helpers.py @@ -1530,7 +1530,7 @@ def IssueDetails(filelocation, IssueID=None, justinfo=False): cover = "found" break - elif (any(['001.jpg' in infile, '001.png' in infile, '001.webp' in infile, '01.jpg' in infile, '01.png' in infile, '01.webp' in infile]) or ('0001' in infile and infile.endswith(pic_extensions))) and cover == "notfound": + elif (any(['001.jpg' in infile, '001.png' in infile, '001.webp' in infile, '01.jpg' in infile, '01.png' in infile, '01.webp' in infile]) or all(['0001' in infile, infile.endswith(pic_extensions)]) or all(['01' in infile, infile.endswith(pic_extensions)])) and cover == "notfound": logger.fdebug('Extracting primary image ' + infile + ' as coverfile for display.') local_file = open(os.path.join(mylar.CONFIG.CACHE_DIR, 'temp.jpg'), "wb") local_file.write(inzipfile.read(infile))