From 85c110ccb4ac16b893644d461958b62d5abd4731 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sun, 23 Jun 2019 21:15:12 -0700 Subject: [PATCH] cutter: Fix typo from when we moved to the client model instead of auth headers --- cutter/cutter/youtube.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cutter/cutter/youtube.py b/cutter/cutter/youtube.py index 2b2a23e..0bbe336 100644 --- a/cutter/cutter/youtube.py +++ b/cutter/cutter/youtube.py @@ -26,7 +26,6 @@ class Youtube(object): } resp = self.client.request('POST', 'https://www.googleapis.com/upload/youtube/v3/videos', - headers=self.auth_headers(), params={ 'part': 'snippet,status' if hidden else 'snippet', 'uploadType': 'resumable', @@ -35,7 +34,7 @@ class Youtube(object): ) resp.raise_for_status() 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() return resp.json()['id'] @@ -51,7 +50,6 @@ class Youtube(object): group = ids[i:i+10] resp = self.client.request('GET', 'https://www.googleapis.com/youtube/v3/videos', - headers=self.auth_headers(), params={ 'part': 'id,status', 'id': ','.join(group),