adding uploader_like_count and description to VOD twitch video

This commit is contained in:
Avichai 2020-03-19 19:31:18 +02:00
parent 079235e6d9
commit 37df22f24a

View File

@ -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