[ndtv] Modernize
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 19 Jan 2015 09:10:05 +0000 (10:10 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 19 Jan 2015 09:10:05 +0000 (10:10 +0100)
youtube_dl/extractor/ndtv.py

index 95e7d63aade1edbc6a0c300bcc18168d707f8716..2a1ca80df797f0abe63cc6327c5e283965865f70 100644 (file)
@@ -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(