[noco] Modernize
authorSergey M․ <dstftw@gmail.com>
Thu, 17 Dec 2015 16:16:58 +0000 (22:16 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 17 Dec 2015 16:16:58 +0000 (22:16 +0600)
youtube_dl/extractor/noco.py

index 63b97f170dcb1c053426ef5779e8bde5913eec9d..daba2e12fb0ecfb8407b09dab960dd28034ce776 100644 (file)
@@ -110,8 +110,7 @@ class NocoIE(InfoExtractor):
             expected=True)
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
-        video_id = mobj.group('id')
+        video_id = self._match_id(url)
 
         # Timestamp adjustment offset between server time and local time
         # must be calculated in order to use timestamps closest to server's