1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[veoh] Remove old _extract_video

This commit is contained in:
nobody 2019-10-09 10:37:05 -05:00
parent 1f8b64edc4
commit 294caf43d6

View File

@ -68,19 +68,6 @@ class VeohIE(InfoExtractor):
},
}]
def _extract_video(self, source):
return {
'id': source.get('videoId'),
'title': source.get('title'),
'description': source.get('description'),
'thumbnail': source.get('highResImage') or source.get('medResImage'),
'uploader': source.get('username'),
'duration': int_or_none(source.get('length')),
'view_count': int_or_none(source.get('views')),
'age_limit': 18 if source.get('isMature') == 'true' or source.get('isSexy') == 'true' else 0,
'formats': self._extract_formats(source),
}
def _real_extract(self, url):
video_id = self._match_id(url)
json = self._download_json(