mirror of https://github.com/scrapy/scrapy.git
imagespipeline: change scraped_url to url
This commit is contained in:
parent
734464825b
commit
96bc6780d3
|
|
@ -220,7 +220,7 @@ class ImagesPipeline(MediaPipeline):
|
|||
log.msg(str(ex), level=log.WARNING, domain=info.domain)
|
||||
raise ex
|
||||
|
||||
return {'scraped_url': request.url, 'path': key, 'checksum': checksum}
|
||||
return {'url': request.url, 'path': key, 'checksum': checksum}
|
||||
|
||||
def media_failed(self, failure, request, info):
|
||||
referer = request.headers.get('Referer')
|
||||
|
|
@ -249,7 +249,7 @@ class ImagesPipeline(MediaPipeline):
|
|||
self.inc_stats(info.domain, 'uptodate')
|
||||
|
||||
checksum = result.get('checksum', None)
|
||||
return {'scraped_url': request.url, 'path': key, 'checksum': checksum}
|
||||
return {'url': request.url, 'path': key, 'checksum': checksum}
|
||||
|
||||
key = self.image_key(request.url)
|
||||
dfd = defer.maybeDeferred(self.store.stat_image, key, info)
|
||||
|
|
|
|||
Loading…
Reference in New Issue