aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-10-27 00:14:52 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-10-27 00:14:52 +0100
commit3d6047113ceade1c3588b46fa6a65ee360643b02 (patch)
tree13e93f3e793ad5aa837184c452c077dbafa5bb24 /youtube_dl/extractor
parent9dec99303d589bdf78493ee124f3ae230d8cd606 (diff)
[vgtv] Simplify
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/vgtv.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/vgtv.py b/youtube_dl/extractor/vgtv.py
index 964470070..bb6cc83b5 100644
--- a/youtube_dl/extractor/vgtv.py
+++ b/youtube_dl/extractor/vgtv.py
@@ -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')