]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/YoutubeDL.py
[build] Enable lazy-extractors in releases
[yt-dlp.git] / yt_dlp / YoutubeDL.py
index 79f0b274d29eed1074d4e8e37576ddb0f586ddf1..f95bbea81f64c58e03a5d040c271aa2840e67d8c 100644 (file)
@@ -3268,8 +3268,11 @@ def print_debug_header(self):
 
         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}')