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

fix depth counter in UrlJob

regression from adf4d661

It would either stop at the first level (-g) or go infinitely deep (-G)
Going down to for example level 3 with -ggg didn't work.
This commit is contained in:
Mike Fährmann 2021-06-26 00:26:08 +02:00
parent 0179581340
commit 64986f9435
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -626,7 +626,7 @@ class UrlJob(Job):
extr = extractor.find(url)
if extr:
self.status |= self.__class__(extr, self).run()
self.status |= self.__class__(extr, self, self.depth + 1).run()
else:
self._write_unsupported(url)