]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/__pyinstaller/hook-yt_dlp.py
[rh:requests] Add handler for `requests` HTTP library (#3668)
[yt-dlp.git] / yt_dlp / __pyinstaller / hook-yt_dlp.py
index 88c2b8b2852546b295458e3cf0777de323623b6a..c7f2c0ceb713aac28d8b3a84109634a330f562d6 100644 (file)
@@ -21,7 +21,9 @@ def get_hidden_imports():
     yield from ('yt_dlp.compat._legacy', 'yt_dlp.compat._deprecated')
     yield from ('yt_dlp.utils._legacy', 'yt_dlp.utils._deprecated')
     yield pycryptodome_module()
-    yield from collect_submodules('websockets')
+    # Only `websockets` is required, others are collected just in case
+    for module in ('websockets', 'requests', 'urllib3'):
+        yield from collect_submodules(module)
     # These are auto-detected, but explicitly add them just in case
     yield from ('mutagen', 'brotli', 'certifi')