]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[techtalks] Allow URL-s with name part omitted.
authorAleksander Nitecki <ixendr@itogi.re>
Mon, 3 Oct 2016 19:47:19 +0000 (21:47 +0200)
committerSergey M․ <dstftw@gmail.com>
Mon, 3 Oct 2016 19:52:33 +0000 (02:52 +0700)
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/',