From cf8d13e80e331a3a38db47bd2199490b39b68069 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Mon, 23 Nov 2020 15:40:33 +0100 Subject: [PATCH] Fix clip download due to missing fields in query fixes #45 --- twitchdl/twitch.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/twitchdl/twitch.py b/twitchdl/twitch.py index ef5e3ee..f9d557a 100644 --- a/twitchdl/twitch.py +++ b/twitchdl/twitch.py @@ -74,7 +74,9 @@ def get_clip(slug): query = """ {{ clip(slug: "{}") {{ + id title + createdAt durationSeconds game {{ name @@ -82,6 +84,9 @@ def get_clip(slug): broadcaster {{ login displayName + channel {{ + name + }} }} videoQualities {{ frameRate @@ -153,7 +158,6 @@ def get_channel_clips(channel_id, period, limit, after=None): "period": period.upper(), }) - response = gql_query(query) user = response["data"]["user"] if not user: