瀏覽代碼

[noco] Modernize

Sergey M․ 10 年之前
父節點
當前提交
7824e1f6a6
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      youtube_dl/extractor/noco.py

+ 1 - 2
youtube_dl/extractor/noco.py

@@ -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