mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 10:24:33 +01:00
[veoh] Remove old _extract_video
This commit is contained in:
parent
1f8b64edc4
commit
294caf43d6
@ -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):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
json = self._download_json(
|
json = self._download_json(
|
||||||
|
Loading…
Reference in New Issue
Block a user