1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-26 20:10:42 +08:00

adding uploader_like_count and description to VOD twitch video

This commit is contained in:
Avichai
2020-03-19 19:31:18 +02:00
Unverified
parent 079235e6d9
commit 37df22f24a
+11
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