1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 12:15:02 -04:00

[cleanup] Misc fixes

Closes #4027
This commit is contained in:
pukkandan
2022-06-11 00:33:54 +05:30
parent d05460e5fe
commit 56ba69e4c9
13 changed files with 72 additions and 83 deletions

View File

@@ -3674,8 +3674,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
initial_data = None
if webpage:
initial_data = self._search_json(
self._YT_INITIAL_DATA_RE, webpage, 'yt initial data', video_id, fatal=False)
initial_data = self.extract_yt_initial_data(video_id, webpage, fatal=False)
if not initial_data:
query = {'videoId': video_id}
query.update(self._get_checkok_params())