[techtalks] Allow URL-s with name part omitted.
[youtube-dl] / youtube_dl / extractor / techtalks.py
index 16e945d8e624adc51e6a68eab786bdece0a29960..0ec7b127367236a0911f3f78a8e3045350b37708 100644 (file)
@@ -10,7 +10,7 @@ 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 = {
         'url': 'http://techtalks.tv/talks/learning-topic-models-going-beyond-svd/57758/',