1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 16:45:17 +00:00

[dependencies] Create module with all dependency imports

This commit is contained in:
pukkandan
2022-04-21 00:35:57 +05:30
parent 62f6f1cbf2
commit 9b8ee23b99
13 changed files with 127 additions and 112 deletions

View File

@ -3,18 +3,10 @@ import os
import signal
import threading
try:
import websockets
except (ImportError, SyntaxError):
# websockets 3.10 on python 3.6 causes SyntaxError
# See https://github.com/yt-dlp/yt-dlp/issues/2633
has_websockets = False
else:
has_websockets = True
from .common import FileDownloader
from .external import FFmpegFD
from ..compat import asyncio
from ..dependencies import websockets
class FFmpegSinkFD(FileDownloader):