projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7df67e
)
[teachertube] Add support for new URL formats
author
Sergey M․
<dstftw@gmail.com>
Thu, 26 Jun 2014 13:01:59 +0000
(20:01 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 26 Jun 2014 13:01:59 +0000
(20:01 +0700)
youtube_dl/extractor/teachertube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/teachertube.py
b/youtube_dl/extractor/teachertube.py
index c9a3fe571a5fa41e2bd62c07922166cc1bc90845..d9868d569daa346bf7a1659b7bed6073b824b668 100644
(file)
--- 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=)(?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',