Explorar el Código

[ndtv] Modernize

Philipp Hagemeister hace 10 años
padre
commit
c511f13f22
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      youtube_dl/extractor/ndtv.py

+ 1 - 3
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(