extend output of --list-keywords

This commit is contained in:
Mike Fährmann
2017-08-10 17:36:21 +02:00
parent cfa479fab5
commit 3c9f190757
2 changed files with 7 additions and 1 deletions

View File

@@ -163,6 +163,12 @@ class KeywordJob(Job):
print("-----------------------------")
self.print_keywords(keywords)
def handle_queue(self, url):
print("This extractor transfers work to other extractors and does not "
"provide any keywords on its own. Try "
"'gallery-dl --list-keywords \"", url, "\"' instead.", sep="")
raise exception.StopExtraction()
@staticmethod
def print_keywords(keywords, prefix=""):
"""Print key-value pairs with formatting"""