From: Philipp Hagemeister Date: Mon, 19 Jan 2015 09:10:05 +0000 (+0100) Subject: [ndtv] Modernize X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=c511f13f223d843dd4affc30c76bf333a6863227;p=youtube-dl [ndtv] Modernize --- diff --git a/youtube_dl/extractor/ndtv.py b/youtube_dl/extractor/ndtv.py index 95e7d63aa..2a1ca80df 100644 --- a/youtube_dl/extractor/ndtv.py +++ b/youtube_dl/extractor/ndtv.py @@ -27,9 +27,7 @@ class NDTVIE(InfoExtractor): } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') - + video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) filename = self._search_regex(