From: Naglis Jonaitis Date: Wed, 11 Feb 2015 13:47:19 +0000 (+0200) Subject: [teamcoco] Fix video id extraction X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=3811c567e734f38f830e8c2e0a45afa7c48cbf12;p=youtube-dl.git [teamcoco] Fix video id extraction --- diff --git a/youtube_dl/extractor/teamcoco.py b/youtube_dl/extractor/teamcoco.py index e85d452a3..a73da1c9c 100644 --- a/youtube_dl/extractor/teamcoco.py +++ b/youtube_dl/extractor/teamcoco.py @@ -30,6 +30,11 @@ class TeamcocoIE(InfoExtractor): } } ] + _VIDEO_ID_REGEXES = ( + r'"eVar42"\s*:\s*(\d+)', + r'Ginger\.TeamCoco\.openInApp\("video",\s*"([^"]+)"', + r'"id_not"\s*:\s*(\d+)' + ) def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) @@ -40,8 +45,7 @@ class TeamcocoIE(InfoExtractor): video_id = mobj.group("video_id") if not video_id: video_id = self._html_search_regex( - r'