Update default headers to fix failing get_artist_albums and get_user_playlists tests
This commit is contained in:
parent
bdbaada36a
commit
c951c409f3
2 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue