From: Aleksander Nitecki Date: Mon, 3 Oct 2016 19:47:19 +0000 (+0200) Subject: [techtalks] Allow URL-s with name part omitted. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=539c881bfc1380890a55a08dbf970900328f8ec5;p=youtube-dl.git [techtalks] Allow URL-s with name part omitted. --- diff --git a/youtube_dl/extractor/techtalks.py b/youtube_dl/extractor/techtalks.py index 16e945d8e..0ec7b1273 100644 --- a/youtube_dl/extractor/techtalks.py +++ b/youtube_dl/extractor/techtalks.py @@ -10,7 +10,7 @@ from ..utils import ( class TechTalksIE(InfoExtractor): - _VALID_URL = r'https?://techtalks\.tv/talks/[^/]*/(?P\d+)/' + _VALID_URL = r'https?://techtalks\.tv/talks/(?:[^/]*/)?(?P\d+)/' _TEST = { 'url': 'http://techtalks.tv/talks/learning-topic-models-going-beyond-svd/57758/',