From 598036e226811597fce4334c2794585b0abb1950 Mon Sep 17 00:00:00 2001 From: zxvv Date: Tue, 17 Jul 2018 15:44:09 -0500 Subject: [PATCH] Change minimum cover JPG image size to 10,000 (reduced from 30,000) Covers for certain comics using 'poster effect' (no gradients) such as: https://comicvine.gamespot.com/east-of-west/4050-59366/ have sizes of 26K for large, and 15K for small images. This reduces the minimum cover JPG data size to 10K bytes. --- mylar/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylar/helpers.py b/mylar/helpers.py index afd1a216..5c23988f 100755 --- a/mylar/helpers.py +++ b/mylar/helpers.py @@ -3539,7 +3539,7 @@ def getImage(comicid, url, issueid=None): statinfo = os.stat(coverfile) coversize = statinfo.st_size - if int(coversize) < 30000 or str(r.status_code) != '200': + if int(coversize) < 10000 or str(r.status_code) != '200': if str(r.status_code) != '200': logger.info('Trying to grab an alternate cover due to problems trying to retrieve the main cover image.') else: