mirror of https://github.com/scrapy/scrapy.git
fix missing keyword arguments for file_path in media_downloaded()
This commit is contained in:
parent
d8ca8f83bb
commit
87559a1240
|
|
@ -255,7 +255,7 @@ class FilesPipeline(MediaPipeline):
|
|||
return [Request(x) for x in item.get(self.FILES_URLS_FIELD, [])]
|
||||
|
||||
def file_downloaded(self, response, request, info):
|
||||
path = self.file_path(request)
|
||||
path = self.file_path(request, response=response, info=info)
|
||||
buf = StringIO(response.body)
|
||||
self.store.persist_file(path, buf, info)
|
||||
checksum = md5sum(buf)
|
||||
|
|
|
|||
Loading…
Reference in New Issue