mirror of https://github.com/scrapy/scrapy.git
media pipeline: dont hide list of results for item_complete
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40396
This commit is contained in:
parent
5ccd4df0cd
commit
a6ff165332
|
|
@ -49,7 +49,7 @@ class MediaPipeline(object):
|
|||
lst.append(dfd)
|
||||
|
||||
dlst = defer.DeferredList(lst, consumeErrors=False)
|
||||
dlst.addBoth(lambda _: self.item_completed(item, info))
|
||||
dlst.addBoth(self.item_completed, item, info)
|
||||
return dlst
|
||||
|
||||
def _enqueue(self, request, info):
|
||||
|
|
@ -183,7 +183,7 @@ class MediaPipeline(object):
|
|||
return value of this method isn't important and is recommended to return None.
|
||||
"""
|
||||
|
||||
def item_completed(self, item, info):
|
||||
def item_completed(self, results, item, info):
|
||||
""" Method called when all media requests for a single item has returned a result or failure.
|
||||
|
||||
The return value of this method is used as output of pipeline stage.
|
||||
|
|
|
|||
Loading…
Reference in New Issue