MCPcopy
hub / github.com/scrapy/scrapy / media_to_download

Method media_to_download

tests/test_pipeline_media.py:182–186  ·  view source on GitHub ↗
(self, request, info, *, item=None)

Source from the content-addressed store, hash-verified

180 return super().download(request, info)
181
182 def media_to_download(self, request, info, *, item=None):
183 self._mockcalled.append("media_to_download")
184 if "result" in request.meta:
185 return request.meta.get("result")
186 return super().media_to_download(request, info)
187
188 def get_media_requests(self, item, info):
189 self._mockcalled.append("get_media_requests")

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
media_to_downloadMethod · 0.45

Tested by

no test coverage detected