fix issues with 'Extractor.finalize()'

- prevent crash in InstagramUserExtractor (#4359)
- call it at the end of every DownloadJob
- add it to tests
This commit is contained in:
Mike Fährmann
2023-07-29 13:43:27 +02:00
parent ed21908fda
commit 48ef062867
4 changed files with 8 additions and 3 deletions

View File

@@ -138,6 +138,7 @@ class TestExtractorModule(unittest.TestCase):
for test in cls._get_tests():
extr = cls.from_url(test[0])
extr.initialize()
extr.finalize()
break
def test_docstrings(self):