aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-21 18:24:05 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-21 19:41:33 +0530
commit6e21fdd27902efa6ad7fb12b570e4b2dd0bfde8d (patch)
tree8ca927aceebbf831fd3a8ab51659dc14ad06d2e2 /yt_dlp/YoutubeDL.py
parent0e5927eebfcd02a4815fcb29319a1dd3f05fd1b3 (diff)
downloadhypervideo-pre-6e21fdd27902efa6ad7fb12b570e4b2dd0bfde8d.tar.lz
hypervideo-pre-6e21fdd27902efa6ad7fb12b570e4b2dd0bfde8d.tar.xz
hypervideo-pre-6e21fdd27902efa6ad7fb12b570e4b2dd0bfde8d.zip
[build] Enable lazy-extractors in releases
Set the environment variable `YTDLP_NO_LAZY_EXTRACTORS` to forcefully disable lazy extractor loading
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 79f0b274d..f95bbea81 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -3268,8 +3268,11 @@ class YoutubeDL(object):
source = detect_variant()
write_debug('yt-dlp version %s%s\n' % (__version__, '' if source == 'unknown' else f' ({source})'))
- if _LAZY_LOADER:
- write_debug('Lazy loading extractors enabled\n')
+ if not _LAZY_LOADER:
+ if os.environ.get('YTDLP_NO_LAZY_EXTRACTORS'):
+ write_debug('Lazy loading extractors is forcibly disabled\n')
+ else:
+ write_debug('Lazy loading extractors is disabled\n')
if plugin_extractors or plugin_postprocessors:
write_debug('Plugins: %s\n' % [
'%s%s' % (klass.__name__, '' if klass.__name__ == name else f' as {name}')