mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-10 15:28:33 +00:00
flake8
This commit is contained in:
parent
4d24983442
commit
4fc802f965
@ -19,7 +19,6 @@ class FrontendMastersBaseIE(InfoExtractor):
|
|||||||
|
|
||||||
_NETRC_MACHINE = 'frontendmasters'
|
_NETRC_MACHINE = 'frontendmasters'
|
||||||
|
|
||||||
|
|
||||||
def _perform_login(self, username, password):
|
def _perform_login(self, username, password):
|
||||||
login_page = self._download_webpage(
|
login_page = self._download_webpage(
|
||||||
self._LOGIN_URL, None, 'Downloading login page')
|
self._LOGIN_URL, None, 'Downloading login page')
|
||||||
@ -125,6 +124,7 @@ class FrontendMastersIE(FrontendMastersBaseIE):
|
|||||||
'url': 'frontendmasters:a2qogef6ba',
|
'url': 'frontendmasters:a2qogef6ba',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
lesson_id = self._match_id(url)
|
lesson_id = self._match_id(url)
|
||||||
|
|
||||||
@ -137,16 +137,15 @@ def _real_extract(self, url):
|
|||||||
if fem_auth_mod:
|
if fem_auth_mod:
|
||||||
headers['Cookie'] = f'fem_auth_mod={fem_auth_mod.value}'
|
headers['Cookie'] = f'fem_auth_mod={fem_auth_mod.value}'
|
||||||
|
|
||||||
json = self._download_json(
|
json_response = self._download_json(
|
||||||
source_url,
|
source_url,
|
||||||
'Downloading source JSON', query={
|
'Downloading source JSON', query={
|
||||||
'f': 'm3u8'
|
'f': 'm3u8'
|
||||||
}, headers=headers)
|
}, headers=headers)
|
||||||
|
|
||||||
video_url = json.get('url')
|
m3u8_url = json_response.get('url')
|
||||||
|
|
||||||
formats = self._extract_m3u8_formats(video_url, lesson_id)
|
|
||||||
|
|
||||||
|
formats = self._extract_m3u8_formats(m3u8_url, lesson_id)
|
||||||
|
|
||||||
subtitles = {
|
subtitles = {
|
||||||
'en': [{
|
'en': [{
|
||||||
|
Loading…
Reference in New Issue
Block a user