mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 21:56:53 +01:00
[teamcoco] Fix extraction
This commit is contained in:
parent
094ce39c45
commit
fbfcc2972b
@ -54,7 +54,7 @@ def _real_extract(self, url):
|
|||||||
embed_url, video_id, 'Downloading embed page')
|
embed_url, video_id, 'Downloading embed page')
|
||||||
|
|
||||||
player_data = self._parse_json(self._search_regex(
|
player_data = self._parse_json(self._search_regex(
|
||||||
r'Y\.Ginger\.Module\.Player\((\{.*?\})\);', embed, 'player data'), video_id)
|
r'Y\.Ginger\.Module\.Player(?:;var\s*player\s*=\s*new\s*m)?\((\{.*?\})\);', embed, 'player data'), video_id)
|
||||||
data = self._parse_json(
|
data = self._parse_json(
|
||||||
base64.b64decode(player_data['preload'].encode('ascii')).decode('utf-8'), video_id)
|
base64.b64decode(player_data['preload'].encode('ascii')).decode('utf-8'), video_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user