From 4790abc01d845f4af1302fcd76e5f414dbed377f Mon Sep 17 00:00:00 2001 From: Jamil Karami Date: Sat, 18 Feb 2023 14:59:37 +0100 Subject: [PATCH] Fix formatting --- youtube_dl/extractor/kick.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/extractor/kick.py b/youtube_dl/extractor/kick.py index 558790589..9464eb661 100644 --- a/youtube_dl/extractor/kick.py +++ b/youtube_dl/extractor/kick.py @@ -29,6 +29,9 @@ class KickIE(InfoExtractor): data = self._download_json('https://kick.com/api/v1/video/%s' % id, id, headers=headers) video_url = data['source'] + formats = self._extract_m3u8_formats( + data['source'], id, 'mp4') + self._sort_formats(formats) title = data['livestream']['session_title'] uploader = data['livestream']['channel']['user']['username'] thumbnail = data['livestream']['thumbnail'] @@ -39,4 +42,5 @@ class KickIE(InfoExtractor): 'title': title, 'uploader': uploader, 'thumbnail': thumbnail, + 'formats': formats, } \ No newline at end of file