aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/teamcoco.py
diff options
context:
space:
mode:
authorNaglis Jonaitis <[email protected]>2015-03-26 16:13:53 +0200
committerNaglis Jonaitis <[email protected]>2015-03-26 16:13:53 +0200
commitfbfcc2972b3b24bda092eaed92b81113154c4327 (patch)
treef86a1ad0c29382687abc17400404f79e46e914d4 /youtube_dl/extractor/teamcoco.py
parent094ce39c45422d4675228337f115a110c718d68a (diff)
downloadyoutube-dl-fbfcc2972b3b24bda092eaed92b81113154c4327.tar.gz
youtube-dl-fbfcc2972b3b24bda092eaed92b81113154c4327.zip
[teamcoco] Fix extraction
Diffstat (limited to 'youtube_dl/extractor/teamcoco.py')
-rw-r--r--youtube_dl/extractor/teamcoco.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/teamcoco.py b/youtube_dl/extractor/teamcoco.py
index 7cb06f351..a46a7ecba 100644
--- a/youtube_dl/extractor/teamcoco.py
+++ b/youtube_dl/extractor/teamcoco.py
@@ -54,7 +54,7 @@ class TeamcocoIE(InfoExtractor):
embed_url, video_id, 'Downloading embed page')
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(
base64.b64decode(player_data['preload'].encode('ascii')).decode('utf-8'), video_id)