Skip to content

Commit

Permalink
print urls recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Aug 11, 2016
1 parent 5a5b47e commit 406add2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions gallery_dl/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ def __init__(self, url):
self.directory_fmt = os.path.join(*segments)

def run(self):
if self.extractor is None:
return

for msg in self.extractor:
if msg[0] == Message.Url:
self.download(msg)
Expand Down Expand Up @@ -140,8 +137,6 @@ class KeywordJob(Job):
"""Print available keywords"""

def run(self):
if self.extractor is None:
return
for msg in self.extractor:
if msg[0] == Message.Url:
print("Keywords for filenames:")
Expand All @@ -164,11 +159,15 @@ class UrlJob(Job):
"""Print download urls"""

def run(self):
if self.extractor is None:
return
for msg in self.extractor:
if msg[0] == Message.Url:
print(msg[1])
elif msg[0] == Message.Queue:
try:
UrlJob(msg[1]).run()
except exception.NoExtractorError:
pass



class HashJob(DownloadJob):
Expand Down

0 comments on commit 406add2

Please sign in to comment.