1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

attempt to fix syntax error on older python

This commit is contained in:
siikamiika 2020-08-05 04:14:25 +03:00
parent b50548d893
commit 8ff9f315b0

View File

@ -28,7 +28,7 @@ class YoutubeLiveChatReplayFD(FragmentFD):
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)