From: Sergey M․ Date: Wed, 20 Apr 2016 17:52:41 +0000 (+0600) Subject: [tvigle] Fix extraction (Closes #9259) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=12a51345962bc032de45952ec60989f46544101c;p=youtube-dl [tvigle] Fix extraction (Closes #9259) --- diff --git a/youtube_dl/extractor/tvigle.py b/youtube_dl/extractor/tvigle.py index dc3a8334a..f3aba3530 100644 --- a/youtube_dl/extractor/tvigle.py +++ b/youtube_dl/extractor/tvigle.py @@ -58,7 +58,9 @@ class TvigleIE(InfoExtractor): if not video_id: webpage = self._download_webpage(url, display_id) video_id = self._html_search_regex( - r'class="video-preview current_playing" id="(\d+)">', + (r']+class=["\']player["\'][^>]+id=["\'](\d+)', + r'var\s+cloudId\s*=\s*["\'](\d+)', + r'class="video-preview current_playing" id="(\d+)"'), webpage, 'video id') video_data = self._download_json(