Fix add_info_extractor when used via API

Bug from: 251ae04e6a
This commit is contained in:
pukkandan committed 2021-08-23 05:31:55 +05:30
1 parent 251ae04e6a
commit 8b7491c8d1
2 files changed
+18 -12

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ def build_lazy_ie(ie, name):
if valid_url:
s += f' _VALID_URL = {valid_url!r}\n'
if not ie._WORKING:
s += f' _WORKING = False\n'
s += ' _WORKING = False\n'
if ie.suitable.__func__ is not InfoExtractor.suitable.__func__:
s += f'\n{getsource(ie.suitable)}'
if hasattr(ie, '_make_valid_url'):