mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
parent
6108b15587
commit
cf8d13e80e
@ -74,7 +74,9 @@ def get_clip(slug):
|
|||||||
query = """
|
query = """
|
||||||
{{
|
{{
|
||||||
clip(slug: "{}") {{
|
clip(slug: "{}") {{
|
||||||
|
id
|
||||||
title
|
title
|
||||||
|
createdAt
|
||||||
durationSeconds
|
durationSeconds
|
||||||
game {{
|
game {{
|
||||||
name
|
name
|
||||||
@ -82,6 +84,9 @@ def get_clip(slug):
|
|||||||
broadcaster {{
|
broadcaster {{
|
||||||
login
|
login
|
||||||
displayName
|
displayName
|
||||||
|
channel {{
|
||||||
|
name
|
||||||
|
}}
|
||||||
}}
|
}}
|
||||||
videoQualities {{
|
videoQualities {{
|
||||||
frameRate
|
frameRate
|
||||||
@ -153,7 +158,6 @@ def get_channel_clips(channel_id, period, limit, after=None):
|
|||||||
"period": period.upper(),
|
"period": period.upper(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
response = gql_query(query)
|
response = gql_query(query)
|
||||||
user = response["data"]["user"]
|
user = response["data"]["user"]
|
||||||
if not user:
|
if not user:
|
||||||
|
Loading…
Reference in New Issue
Block a user