Remove unused code

This commit is contained in:
Ivan Habunek 2020-05-29 13:51:51 +02:00
parent 169f15ca30
commit 717f634dda
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -51,7 +51,6 @@ def kraken_get(url, params={}, headers={}):
def gql_query(query): def gql_query(query):
url = "https://gql.twitch.tv/gql" url = "https://gql.twitch.tv/gql"
payload = {"query": query}
response = authenticated_post(url, json={"query": query}).json() response = authenticated_post(url, json={"query": query}).json()
if "errors" in response: if "errors" in response:
@ -70,8 +69,6 @@ def get_video(video_id):
def get_clip(slug): def get_clip(slug):
url = "https://gql.twitch.tv/gql"
query = """ query = """
{{ {{
clip(slug: "{}") {{ clip(slug: "{}") {{
@ -98,8 +95,6 @@ def get_clip(slug):
def get_channel_videos(channel_id, limit, sort, type="archive", game_ids=[], after=None): def get_channel_videos(channel_id, limit, sort, type="archive", game_ids=[], after=None):
url = "https://gql.twitch.tv/gql"
query = """ query = """
{{ {{
user(login: "{channel_id}") {{ user(login: "{channel_id}") {{