Scrapy, a fast high-level web crawling & scraping framework for Python.
fix missing keyword arguments for file_path in media_downloaded()
Max Arnold87559a1240b3
diff --git a/scrapy/contrib/pipeline/files.py b/scrapy/contrib/pipeline/files.pyindex b7b1a7d66..8a6658a69 100644--- a/scrapy/contrib/pipeline/files.py+++ b/scrapy/contrib/pipeline/files.py@@ -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)