[auengine] Simplify
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 28 Oct 2014 14:51:15 +0000 (15:51 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 28 Oct 2014 14:51:15 +0000 (15:51 +0100)
youtube_dl/extractor/auengine.py

index 20bf12550d4b4493982ca3ea6f31578368e31aba..1c765532a00d9274c2531277cc1ad81b75053dfd 100644 (file)
@@ -24,8 +24,7 @@ class AUEngineIE(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)
         title = self._html_search_regex(r'<title>(?P<title>.+?)</title>', webpage, 'title')