From f5ac40a0a22b77c4425ae79882f97c45be216135 Mon Sep 17 00:00:00 2001 From: Avi Peretz Date: Sun, 7 Jun 2020 12:47:42 +0300 Subject: [PATCH] Twitch - remove duplicate graph call --- youtube_dl/extractor/twitch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index 9692053d3..1d8992eaf 100644 --- a/youtube_dl/extractor/twitch.py +++ b/youtube_dl/extractor/twitch.py @@ -220,6 +220,7 @@ class TwitchItemBaseIE(TwitchBaseIE): 'timestamp': parse_iso8601(info.get('recorded_at')), 'view_count': int_or_none(info.get('views')), 'is_live': is_live, + 'uploader_like_count': info['channel'].get('followers') } def _real_extract(self, url): @@ -372,17 +373,19 @@ 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