projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dec993
)
[vgtv] Simplify
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 26 Oct 2014 23:14:52 +0000
(
00:14
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 26 Oct 2014 23:14:52 +0000
(
00:14
+0100)
youtube_dl/extractor/vgtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vgtv.py
b/youtube_dl/extractor/vgtv.py
index 96447007021f054fc155906511833aab5ac551c0..bb6cc83b566dc68e110baaae324f034692246925 100644
(file)
--- 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')