From 3d42ba1a267ce8d732e18f788d7c52f1728b6f75 Mon Sep 17 00:00:00 2001 From: vshiran <64166845+vshiran@users.noreply.github.com> Date: Thu, 14 May 2020 23:17:54 -0700 Subject: [PATCH] Added broadcaster id retrieval for twitch clip (#313) --- youtube_dl/extractor/twitch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index df4c39f1c..279fa3f9b 100644 --- a/youtube_dl/extractor/twitch.py +++ b/youtube_dl/extractor/twitch.py @@ -705,6 +705,7 @@ class TwitchClipsIE(TwitchBaseIE): clip(slug: "%s") { broadcaster { displayName + id } createdAt curator { @@ -774,6 +775,7 @@ class TwitchClipsIE(TwitchBaseIE): 'timestamp': unified_timestamp(clip.get('createdAt')), 'thumbnails': thumbnails, 'creator': try_get(clip, lambda x: x['broadcaster']['displayName'], compat_str), + 'creator_id': try_get(clip, lambda x: x['broadcaster']['id'], compat_str), 'uploader': try_get(clip, lambda x: x['curator']['displayName'], compat_str), 'uploader_id': try_get(clip, lambda x: x['curator']['id'], compat_str), }