aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/techtalks.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-10-04 02:54:36 +0700
committerSergey M․ <dstftw@gmail.com>2016-10-04 02:54:36 +0700
commit6eb5503b12286ef9813ee22e95622f09dab2ebe5 (patch)
treebf4a132919ff479baf6ebe5add807cec1d962405 /youtube_dl/extractor/techtalks.py
parent539c881bfc1380890a55a08dbf970900328f8ec5 (diff)
[techtalks] Relax _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/techtalks.py')
-rw-r--r--youtube_dl/extractor/techtalks.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/techtalks.py b/youtube_dl/extractor/techtalks.py
index 0ec7b1273..a5b62c717 100644
--- a/youtube_dl/extractor/techtalks.py
+++ b/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)