From 37df22f24a4e2744ec178e95e6880042ba071326 Mon Sep 17 00:00:00 2001 From: Avichai Date: Thu, 19 Mar 2020 19:31:18 +0200 Subject: [PATCH] adding uploader_like_count and description to VOD twitch video --- youtube_dl/extractor/twitch.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index d3833fbc7..f933cdcea 100644 --- a/youtube_dl/extractor/twitch.py +++ b/youtube_dl/extractor/twitch.py @@ -349,6 +349,17 @@ class TwitchVodIE(TwitchItemBaseIE): 'ext': 'json', }], } + channel_id = info['uploader_id'] + channel = self._call_api( + 'kraken/channels/%s' % channel_id, + channel_id, 'Downloading channel info JSON') + + info['uploader_like_count'] = channel.get('followers') + + description = info['description'] + if description is None: + description = channel.get('status') + info['description'] = description return info