Update default headers to fix failing get_artist_albums and get_user_playlists tests

This commit is contained in:
sigma67 2020-10-28 13:48:17 +01:00
commit c951c409f3
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 3 additions and 3 deletions

View file

@ -4,6 +4,6 @@
"Accept-Language": "en-US,en;q=0.5",
"Content-Type": "application/json",
"X-Goog-AuthUser": "0",
"x-origin": "https://music.youtube.com",
"X-Goog-Visitor-Id": "CgtvVTcxa1EtbV9hayiMu-P0BQ%3D%3D"
"origin": "https://music.youtube.com",
"X-Goog-Visitor-Id": "CgtWaTB2WWRDeEFUYyjhv-X8BQ%3D%3D"
}

View file

@ -104,7 +104,7 @@ class YTMusic(BrowsingMixin, WatchMixin, LibraryMixin, PlaylistsMixin, UploadsMi
body.update(self.context)
if self.auth:
self.headers["Authorization"] = get_authorization(self.sapisid + ' '
+ self.headers['x-origin'])
+ self.headers['origin'])
response = requests.post(base_url + endpoint + params + additionalParams,
json=body,
headers=self.headers,