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

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)