cutter: Fix typo from when we moved to the client model instead of auth headers

pull/59/head
Mike Lang 5 years ago
parent 6d729fa5cc
commit 85c110ccb4

@ -26,7 +26,6 @@ class Youtube(object):
} }
resp = self.client.request('POST', resp = self.client.request('POST',
'https://www.googleapis.com/upload/youtube/v3/videos', 'https://www.googleapis.com/upload/youtube/v3/videos',
headers=self.auth_headers(),
params={ params={
'part': 'snippet,status' if hidden else 'snippet', 'part': 'snippet,status' if hidden else 'snippet',
'uploadType': 'resumable', 'uploadType': 'resumable',
@ -35,7 +34,7 @@ class Youtube(object):
) )
resp.raise_for_status() resp.raise_for_status()
upload_url = resp.headers['Location'] upload_url = resp.headers['Location']
resp = self.client.request('POST', upload_url, headers=self.auth_headers(), data=data) resp = self.client.request('POST', upload_url, data=data)
resp.raise_for_status() resp.raise_for_status()
return resp.json()['id'] return resp.json()['id']
@ -51,7 +50,6 @@ class Youtube(object):
group = ids[i:i+10] group = ids[i:i+10]
resp = self.client.request('GET', resp = self.client.request('GET',
'https://www.googleapis.com/youtube/v3/videos', 'https://www.googleapis.com/youtube/v3/videos',
headers=self.auth_headers(),
params={ params={
'part': 'id,status', 'part': 'id,status',
'id': ','.join(group), 'id': ','.join(group),

Loading…
Cancel
Save