mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 14:27:53 +00:00
Fix formatting
This commit is contained in:
parent
f728a2f01c
commit
515454de4f
@ -29,6 +29,9 @@ class KickIE(InfoExtractor):
|
|||||||
data = self._download_json('https://kick.com/api/v1/video/%s' % id, id, headers=headers)
|
data = self._download_json('https://kick.com/api/v1/video/%s' % id, id, headers=headers)
|
||||||
|
|
||||||
video_url = data['source']
|
video_url = data['source']
|
||||||
|
formats = self._extract_m3u8_formats(
|
||||||
|
data['source'], id, 'mp4')
|
||||||
|
self._sort_formats(formats)
|
||||||
title = data['livestream']['session_title']
|
title = data['livestream']['session_title']
|
||||||
uploader = data['livestream']['channel']['user']['username']
|
uploader = data['livestream']['channel']['user']['username']
|
||||||
thumbnail = data['livestream']['thumbnail']
|
thumbnail = data['livestream']['thumbnail']
|
||||||
@ -39,4 +42,5 @@ class KickIE(InfoExtractor):
|
|||||||
'title': title,
|
'title': title,
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
|
'formats': formats,
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user