Explorar o código

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

Aleksander Nitecki %!s(int64=9) %!d(string=hai) anos
pai
achega
539c881bfc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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/',