diff options
| author | Sergey M․ <dstftw@gmail.com> | 2014-07-03 21:11:56 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2014-07-03 21:11:56 +0700 | 
| commit | 1e07fea200275a1230b80e405918cdeb29d1afd2 (patch) | |
| tree | 4457a3e6869d93f33b6027e78d1b1a017c110852 | |
| parent | 7aeb67b39b055e9586e7ab21c108a3176cfe0203 (diff) | |
[teachertube] Add support for new video URL format
| -rw-r--r-- | youtube_dl/extractor/teachertube.py | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/youtube_dl/extractor/teachertube.py b/youtube_dl/extractor/teachertube.py index 7167a036e..2c2113b14 100644 --- a/youtube_dl/extractor/teachertube.py +++ b/youtube_dl/extractor/teachertube.py @@ -14,7 +14,7 @@ class TeacherTubeIE(InfoExtractor):      IE_NAME = 'teachertube'      IE_DESC = 'teachertube.com videos' -    _VALID_URL = r'https?://(?:www\.)?teachertube\.com/(viewVideo\.php\?video_id=|music\.php\?music_id=|video/|audio/)(?P<id>\d+)' +    _VALID_URL = r'https?://(?:www\.)?teachertube\.com/(viewVideo\.php\?video_id=|music\.php\?music_id=|video/(?:[\da-z-]+-)?|audio/)(?P<id>\d+)'      _TESTS = [{          'url': 'http://www.teachertube.com/viewVideo.php?video_id=339997', @@ -45,6 +45,15 @@ class TeacherTubeIE(InfoExtractor):              'title': 'PER ASPERA AD ASTRA',              'description': 'RADIJSKA EMISIJA ZRAKOPLOVNE TEHNI?KE ?KOLE P',          }, +    }, { +        'url': 'http://www.teachertube.com/video/intro-video-schleicher-297790', +        'md5': '9c79fbb2dd7154823996fc28d4a26998', +        'info_dict': { +            'id': '297790', +            'ext': 'mp4', +            'title': 'Intro Video - Schleicher', +            'description': 'Intro Video - Why to flip, how flipping will', +        },      }]      def _real_extract(self, url):  | 
