Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

grrr.. stupid bugfix

Daniel Granad87f979d2a16
diff --git a/scrapy/trunk/scrapy/contrib/pipeline/media.py b/scrapy/trunk/scrapy/contrib/pipeline/media.py
index f1ca24a95..b19519e6e 100644
--- a/scrapy/trunk/scrapy/contrib/pipeline/media.py
+++ b/scrapy/trunk/scrapy/contrib/pipeline/media.py
@@ -58,7 +58,7 @@ class MediaPipeline(object):
wad = request.deferred or defer.Deferred()
fp = request.fingerprint()
- if fp not in info.downloaded:
+ if fp in info.downloaded:
cached = info.downloaded[fp]
defer_result(cached).chainDeferred(wad)
else: