mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Remove unused code
This commit is contained in:
parent
169f15ca30
commit
717f634dda
@ -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}") {{
|
||||||
|
Loading…
Reference in New Issue
Block a user