Browse Source

[techtalks] Allow URL-s with name part omitted.

Aleksander Nitecki 9 years ago
parent
commit
539c881bfc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/techtalks.py

+ 1 - 1
youtube_dl/extractor/techtalks.py

@@ -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/',