fix missing keyword arguments for file_path in media_downloaded()

This commit is contained in:
Max Arnold 2013-12-18 23:23:01 +07:00
parent d8ca8f83bb
commit 87559a1240
1 changed files with 1 additions and 1 deletions

View File

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