1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

fix UrlJob behavior

This commit is contained in:
Mike Fährmann 2018-01-22 22:49:00 +01:00
parent 76509a6d3c
commit 27fce6f600
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -254,12 +254,12 @@ class KeywordJob(Job):
class UrlJob(Job):
"""Print download urls"""
maxdepth = -1
maxdepth = 1
def __init__(self, url, parent=None, depth=1):
Job.__init__(self, url, parent)
self.depth = depth
if depth == self.maxdepth:
if depth >= self.maxdepth:
self.handle_queue = self.handle_url
@staticmethod