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:
parent
40b590cad3
commit
59d18cf99e
@ -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"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user