aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/fc2.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-04-21 00:35:57 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-04-21 00:48:52 +0530
commit9b8ee23b99de91f9e463050baddfd76fa6580ad6 (patch)
tree4e161e06d5f3953b2a0e10b0e60e53cbf8b39ea3 /yt_dlp/extractor/fc2.py
parent62f6f1cbf253240a026a70538b5b58945563fc90 (diff)
[dependencies] Create module with all dependency imports
Diffstat (limited to 'yt_dlp/extractor/fc2.py')
-rw-r--r--yt_dlp/extractor/fc2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/fc2.py b/yt_dlp/extractor/fc2.py
index a4c9793bb..225677b00 100644
--- a/yt_dlp/extractor/fc2.py
+++ b/yt_dlp/extractor/fc2.py
@@ -4,10 +4,10 @@ from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
)
+from ..dependencies import websockets
from ..utils import (
ExtractorError,
WebSocketsWrapper,
- has_websockets,
js_to_json,
sanitized_Request,
std_headers,
@@ -170,7 +170,7 @@ class FC2LiveIE(InfoExtractor):
}]
def _real_extract(self, url):
- if not has_websockets:
+ if not websockets:
raise ExtractorError('websockets library is not available. Please install it.', expected=True)
video_id = self._match_id(url)
webpage = self._download_webpage('https://live.fc2.com/%s/' % video_id, video_id)