]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/nosvideo.py
Initiate new release.
[youtubedl] / youtube_dl / extractor / nosvideo.py
index f3be8f552c3764995057acf18b74514537960d4e..f5ef856db0155dd84f10d5db4a8cef8e6c08213c 100644 (file)
@@ -4,9 +4,11 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
+from ..compat import (
+    compat_urllib_request,
+)
 from ..utils import (
     ExtractorError,
-    compat_urllib_request,
     urlencode_postdata,
     xpath_text,
     xpath_with_ns,
@@ -32,8 +34,7 @@ class NosVideoIE(InfoExtractor):
     }
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
-        video_id = mobj.group('id')
+        video_id = self._match_id(url)
 
         fields = {
             'id': video_id,