aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/noop.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/noop.py')
-rw-r--r--gallery_dl/extractor/noop.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/gallery_dl/extractor/noop.py b/gallery_dl/extractor/noop.py
index df2316c..fe88e63 100644
--- a/gallery_dl/extractor/noop.py
+++ b/gallery_dl/extractor/noop.py
@@ -8,7 +8,7 @@
"""noop extractor"""
-from .common import Extractor, Message
+from .common import Extractor
class NoopExtractor(Extractor):
@@ -17,11 +17,9 @@ class NoopExtractor(Extractor):
example = "noop"
def items(self):
- # yield *something* to prevent a 'No results' message
- yield Message.Version, 1
-
# Save cookies manually, since it happens automatically only after
# extended extractor initialization, i.e. Message.Directory, which
# itself might cause some unintended effects.
if self.cookies:
self.cookies_store()
+ return iter(((-1, "", None),))