mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-18 16:14:03 -05:00
attempt to fix syntax error on older python
This commit is contained in:
parent
f96f5ddad9
commit
7cd9e2a05f
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def dl_fragment(url):
|
|||
return self._download_fragment(ctx, url, info_dict, headers)
|
||||
|
||||
def parse_yt_initial_data(data):
|
||||
raw_json = re.search(rb'window\["ytInitialData"\]\s*=\s*(.*);', data).group(1)
|
||||
raw_json = re.search(b'window\\["ytInitialData"\\]\s*=\\s*(.*);', data).group(1)
|
||||
return json.loads(raw_json)
|
||||
|
||||
self._prepare_and_start_frag_download(ctx)
|
||||
|
|
Loading…
Reference in a new issue