mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Remove some image processing debug output
This commit is contained in:
parent
732f5e2571
commit
909b64c83c
2 changed files with 4 additions and 4 deletions
|
|
@ -782,7 +782,7 @@ try to download.</p>
|
|||
(img['src'],longdesc)=self.story.addImgUrl(url,self.img_url_trans(img['src']),fetch,
|
||||
coverexclusion=self.getConfig('cover_exclusion_regexp'))
|
||||
if longdesc:
|
||||
logger.debug("---set longdesc:%s"%longdesc)
|
||||
# logger.debug("---set longdesc:%s"%longdesc)
|
||||
img['longdesc'] = longdesc
|
||||
except AttributeError as ae:
|
||||
logger.info("Parsing for img tags failed--probably poor input HTML. Skipping img(%s)"%img)
|
||||
|
|
|
|||
|
|
@ -658,7 +658,7 @@ class ImageStore:
|
|||
if failure:
|
||||
info['newsrc'] = 'failedtoload'
|
||||
info['actuallyused'] = False
|
||||
logger.debug("add_img(%s,%s,%s,%s,%s,used:%s)"%(url,ext,mime,uuid,info['newsrc'],info['actuallyused']))
|
||||
# logger.debug("add_img(%s,%s,%s,%s,%s,used:%s)"%(url,ext,mime,uuid,info['newsrc'],info['actuallyused']))
|
||||
return info
|
||||
|
||||
def cache_failed_url(self,url):
|
||||
|
|
@ -1639,7 +1639,7 @@ class Story(Requestable):
|
|||
## likely changed to jpg.
|
||||
(src,data)=oldimgs[url]
|
||||
ext = src.split('.')[-1]
|
||||
logger.debug("load_oldimgs:(%s,%s,%s)"%(url,ext,imagetypes[ext]))
|
||||
# logger.debug("load_oldimgs:(%s,%s,%s)"%(url,ext,imagetypes[ext]))
|
||||
self.img_store.add_img(url,
|
||||
ext,
|
||||
imagetypes[ext],
|
||||
|
|
@ -1746,7 +1746,7 @@ class Story(Requestable):
|
|||
(data,ext,mime) = no_convert_image(imgurl,
|
||||
imgdata)
|
||||
else:
|
||||
logger.debug("Doing image processing on (%s)"%imgurl)
|
||||
# logger.debug("Doing image processing on (%s)"%imgurl)
|
||||
try:
|
||||
sizes = [ int(x) for x in self.getConfigList('image_max_size',['580', '725']) ]
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue