about summary refs log tree commit diff
path: root/youtube_dl/extractor/teachertube.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-06-26 20:00:47 +0700
committerSergey M․ <dstftw@gmail.com>2014-06-26 20:00:47 +0700
commitc7df67edbd84606051c84b10339302813f5b0314 (patch)
treea72f22cf79a55d8ca098c31d4527af3cfc9ef47d /youtube_dl/extractor/teachertube.py
parentd410fee91d90ebd030fe69148befc0358a07ed2d (diff)
downloadyoutube-dl-c7df67edbd84606051c84b10339302813f5b0314.tar.gz
youtube-dl-c7df67edbd84606051c84b10339302813f5b0314.tar.xz
youtube-dl-c7df67edbd84606051c84b10339302813f5b0314.zip
[teachertube] Improve extraction
Diffstat (limited to 'youtube_dl/extractor/teachertube.py')
-rw-r--r--youtube_dl/extractor/teachertube.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/teachertube.py b/youtube_dl/extractor/teachertube.py
index b3cb6bd76..c9a3fe571 100644
--- a/youtube_dl/extractor/teachertube.py
+++ b/youtube_dl/extractor/teachertube.py
@@ -66,6 +66,7 @@ class TeacherTubeIE(InfoExtractor):
 
         media_urls = re.findall(r'data-contenturl="([^"]+)"', webpage)
         media_urls.extend(re.findall(r'var\s+filePath\s*=\s*"([^"]+)"', webpage))
+        media_urls.extend(re.findall(r'\'file\'\s*:\s*["\']([^"\']+)["\'],', webpage))
 
         formats = [
             {
@@ -79,7 +80,7 @@ class TeacherTubeIE(InfoExtractor):
         return {
             'id': video_id,
             'title': title,
-            'thumbnail': self._html_search_regex(r'var\s+thumbUrl\s*=\s*"([^"]+)"', webpage, 'thumbnail'),
+            'thumbnail': self._html_search_regex(r'\'image\'\s*:\s*["\']([^"\']+)["\']', webpage, 'thumbnail'),
             'formats': formats,
             'description': description,
         }