diff options
Diffstat (limited to 'youtube_dl/extractor/vgtv.py')
| -rw-r--r-- | youtube_dl/extractor/vgtv.py | 10 | 
1 files changed, 4 insertions, 6 deletions
diff --git a/youtube_dl/extractor/vgtv.py b/youtube_dl/extractor/vgtv.py index 964470070..2f111bf7e 100644 --- a/youtube_dl/extractor/vgtv.py +++ b/youtube_dl/extractor/vgtv.py @@ -17,7 +17,7 @@ class VGTVIE(InfoExtractor):              'info_dict': {                  'id': '84196',                  'ext': 'mp4', -                'title': 'Hevnen er søt episode 10: Abu', +                'title': 'Hevnen er søt: Episode 10 - Abu',                  'description': 'md5:e25e4badb5f544b04341e14abdc72234',                  'thumbnail': 're:^https?://.*\.jpg',                  'duration': 648.000, @@ -35,7 +35,7 @@ class VGTVIE(InfoExtractor):                  'title': 'OPPTAK: VGTV følger EM-kvalifiseringen',                  'description': 'md5:3772d9c0dc2dff92a886b60039a7d4d3',                  'thumbnail': 're:^https?://.*\.jpg', -                'duration': 9056.000, +                'duration': 9103.0,                  'timestamp': 1410113864,                  'upload_date': '20140907',                  'view_count': int, @@ -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') @@ -116,4 +114,4 @@ class VGTVIE(InfoExtractor):              'duration': float_or_none(data['duration'], 1000),              'view_count': data['displays'],              'formats': formats, -        }
\ No newline at end of file +        }  | 
