[yuja] fix style

This commit is contained in:
Brian Clinkenbeard 2020-04-04 19:16:14 -07:00
parent 4da3b77f01
commit 55d54e32b2

View File

@ -70,24 +70,26 @@ class YuJaIE(InfoExtractor):
return self.url_result(data.get('youtubeCode'), YoutubeIE.ie_key()) return self.url_result(data.get('youtubeCode'), YoutubeIE.ie_key())
formats = [] formats = []
if data.get('videoHLSLink'): if data.get('videoHLSLink'):
formats.append({ formats.append({
'format_id': 'mp4_hls',
'url': data.get('videoHLSLink'), 'url': data.get('videoHLSLink'),
'protocol': 'm3u8',
'ext': 'mp4', 'ext': 'mp4',
'format_id': 'mp4_hls',
'protocol': 'm3u8',
}) })
if data.get('videoLinkMp4'): if data.get('videoLinkMp4'):
formats.append({ formats.append({
'format_id': 'mp4',
'url': data.get('videoLinkMp4'), 'url': data.get('videoLinkMp4'),
'ext': 'mp4', 'ext': 'mp4',
'format_id': 'mp4',
}) })
return { return {
'id': video_id, 'id': video_id,
'title': data.get('videoTitle'), 'title': data['videoTitle'],
# 'url': data.get('videoLinkMp4'), # 'url': data.get('videoLinkMp4'),
'formats': formats, 'formats': formats,
'thumbnail': 'https://%s.yuja.com%s' % (subdomain, data.get('thumbImage')), 'thumbnail': 'https://%s.yuja.com%s' % (subdomain, data.get('thumbImage')),