youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 11208ebbf164dd6335581ccbdab30a7bb4af63d6
parent 774ce35571c08a1532fe4079224239adfdb80e43
Author: Sergey M <dstftw@gmail.com>
Date:   Wed, 23 Dec 2015 01:05:54 +0600

Merge pull request #7942 from ausbin/comcarcoff-json-fix

[comcarcoff] adjust for json updates
Diffstat:
Myoutube_dl/extractor/comcarcoff.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/youtube_dl/extractor/comcarcoff.py b/youtube_dl/extractor/comcarcoff.py @@ -32,8 +32,8 @@ class ComCarCoffIE(InfoExtractor): webpage = self._download_webpage(url, display_id) full_data = json.loads(self._search_regex( - r'<script type="application/json" id="videoData">(?P<json>.+?)</script>', - webpage, 'full data json')) + r'\nwindow.app = (?P<json>.+?);\n', + webpage, 'full data json'))['videoData'] video_id = full_data['activeVideo']['video'] video_data = full_data.get('videos', {}).get(video_id) or full_data['singleshots'][video_id]