[teachertube] Add support for new URL formats
authorSergey M․ <dstftw@gmail.com>
Thu, 26 Jun 2014 13:01:59 +0000 (20:01 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 26 Jun 2014 13:01:59 +0000 (20:01 +0700)
youtube_dl/extractor/teachertube.py

index c9a3fe571a5fa41e2bd62c07922166cc1bc90845..d9868d569daa346bf7a1659b7bed6073b824b668 100644 (file)
@@ -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=)(?P<id>\d+)'
+    _VALID_URL = r'https?://(?:www\.)?teachertube\.com/(viewVideo\.php\?video_id=|music\.php\?music_id=|video/|audio/)(?P<id>\d+)'
 
     _TESTS = [{
         'url': 'http://www.teachertube.com/viewVideo.php?video_id=339997',