aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/tvigle.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2016-04-20 23:52:41 +0600
committerSergey M․ <[email protected]>2016-04-20 23:52:41 +0600
commit12a51345962bc032de45952ec60989f46544101c (patch)
tree022b0dbf8c9dcd22d1fe53413ceaa9132c02452b /youtube_dl/extractor/tvigle.py
parent16e633a5d715a36fa4dbff1dbc8bfbf01ad081db (diff)
downloadyoutube-dl-12a51345962bc032de45952ec60989f46544101c.tar.gz
youtube-dl-12a51345962bc032de45952ec60989f46544101c.zip
[tvigle] Fix extraction (Closes #9259)
Diffstat (limited to 'youtube_dl/extractor/tvigle.py')
-rw-r--r--youtube_dl/extractor/tvigle.py4
1 files changed, 3 insertions, 1 deletions
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'<div[^>]+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(