projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
094ce39
)
[teamcoco] Fix extraction
author
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 26 Mar 2015 14:13:53 +0000
(16:13 +0200)
committer
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 26 Mar 2015 14:13:53 +0000
(16:13 +0200)
youtube_dl/extractor/teamcoco.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/teamcoco.py
b/youtube_dl/extractor/teamcoco.py
index 7cb06f351e5b388142b00b51aeba69a1ecfef250..a46a7ecba299c2e4e4e30eb69e7a8cfb3214155d 100644
(file)
--- 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)