Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
6 additions and
3 deletions
-
youtube_dl/extractor/techtalks.py
|
|
@ -10,9 +10,9 @@ from ..utils import ( |
|
|
|
|
|
|
|
|
|
|
|
class TechTalksIE(InfoExtractor): |
|
|
|
_VALID_URL = r'https?://techtalks\.tv/talks/(?:[^/]*/)?(?P<id>\d+)/' |
|
|
|
_VALID_URL = r'https?://techtalks\.tv/talks/(?:[^/]+/)?(?P<id>\d+)' |
|
|
|
|
|
|
|
_TEST = { |
|
|
|
_TESTS = [{ |
|
|
|
'url': 'http://techtalks.tv/talks/learning-topic-models-going-beyond-svd/57758/', |
|
|
|
'info_dict': { |
|
|
|
'id': '57758', |
|
|
@ -38,7 +38,10 @@ class TechTalksIE(InfoExtractor): |
|
|
|
# rtmp download |
|
|
|
'skip_download': True, |
|
|
|
}, |
|
|
|
} |
|
|
|
}, { |
|
|
|
'url': 'http://techtalks.tv/talks/57758', |
|
|
|
'only_matching': True, |
|
|
|
}] |
|
|
|
|
|
|
|
def _real_extract(self, url): |
|
|
|
mobj = re.match(self._VALID_URL, url) |
|
|
|