diff --git a/youtube_dl/extractor/veoh.py b/youtube_dl/extractor/veoh.py index f88db1de7..bd05119ad 100644 --- a/youtube_dl/extractor/veoh.py +++ b/youtube_dl/extractor/veoh.py @@ -68,9 +68,10 @@ class VeohIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) - video = self._download_json( + json = self._download_json( 'https://www.veoh.com/watch/getVideo/' + video_id, - video_id)['video'] + video_id) + video = json['video'] title = video['title'] thumbnail_url = None @@ -89,6 +90,8 @@ class VeohIE(InfoExtractor): }) self._sort_formats(formats) + tags = video.get('tags') + return { 'id': video_id, 'title': title, @@ -100,4 +103,7 @@ class VeohIE(InfoExtractor): 'formats': formats, 'average_rating': int_or_none(video.get('rating')), 'comment_count': int_or_none(video.get('numOfComments')), + 'age_limit': 18 if video.get('contentRatingId') == 2 else 0, + 'categories': json.get('categoryPath'), + 'tags': tags.split(', ') if tags else None, }