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.
This commit is contained in:
zxvv 2018-07-17 15:44:09 -05:00 committed by GitHub
parent 5ac745eda7
commit 983c9c6214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: