mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-11 03:33:55 +01:00
flake8
This commit is contained in:
parent
7cd9e2a05f
commit
88a68db03e
@ -28,7 +28,7 @@ class YoutubeLiveChatReplayFD(FragmentFD):
|
|||||||
return self._download_fragment(ctx, url, info_dict, headers)
|
return self._download_fragment(ctx, url, info_dict, headers)
|
||||||
|
|
||||||
def parse_yt_initial_data(data):
|
def parse_yt_initial_data(data):
|
||||||
raw_json = re.search(b'window\\["ytInitialData"\\]\s*=\\s*(.*);', data).group(1)
|
raw_json = re.search(b'window\\["ytInitialData"\\]\\s*=\\s*(.*);', data).group(1)
|
||||||
return json.loads(raw_json)
|
return json.loads(raw_json)
|
||||||
|
|
||||||
self._prepare_and_start_frag_download(ctx)
|
self._prepare_and_start_frag_download(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user