1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +00:00

[techtalks] Relax _VALID_URL

This commit is contained in:
Sergey M․ 2016-10-04 02:54:36 +07:00
parent 539c881bfc
commit 6eb5503b12
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -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)