[vgtv] Simplify
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 26 Oct 2014 23:14:52 +0000 (00:14 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 26 Oct 2014 23:14:52 +0000 (00:14 +0100)
youtube_dl/extractor/vgtv.py

index 96447007021f054fc155906511833aab5ac551c0..bb6cc83b566dc68e110baaae324f034692246925 100644 (file)
@@ -67,9 +67,7 @@ class VGTVIE(InfoExtractor):
     ]
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
-        video_id = mobj.group('id')
-
+        video_id = self._match_id(url)
         data = self._download_json(
             'http://svp.vg.no/svp/api/v1/vgtv/assets/%s?appName=vgtv-website' % video_id,
             video_id, 'Downloading media JSON')