mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 13:34:33 +00:00
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:
parent
854f5cf9a1
commit
598036e226
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue