1
0
Fork 0

[dependencies] Create module with all dependency imports

This commit is contained in:
pukkandan 2022-04-21 00:35:57 +05:30
commit 9b8ee23b99
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
13 changed files with 128 additions and 113 deletions

View file

@ -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)