1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 23:04:16 +00:00

Fixed crawler reference

This commit is contained in:
Pablo Hoffman 2010-08-25 19:59:51 -03:00
parent 40b590cad3
commit 59d18cf99e

View File

@ -88,7 +88,7 @@ class MediaPipeline(object):
def download(self, request, info):
"""Defines how to download the media request"""
request.priority = self.DOWNLOAD_PRIORITY
return crawler.engine.download(request, info.spider)
return self.crawler.engine.download(request, info.spider)
def media_to_download(self, request, info):
"""Check request before starting download"""