Skip to content

Commit 2c17212

Browse files
committed
Extend use of spclient.wg.spotify.com for album, artist, and show metadata requests
1 parent 6c30d29 commit 2c17212

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

librespot/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def get_metadata_4_album(self, album: AlbumId) -> Metadata.Album:
229229
:param album: AlbumId:
230230
231231
"""
232-
response = self.send("GET",
232+
response = self.sendToUrl("GET", "https://spclient.wg.spotify.com",
233233
"/metadata/4/album/{}".format(album.hex_id()),
234234
None, None)
235235
ApiClient.StatusCodeException.check_status(response)
@@ -247,7 +247,7 @@ def get_metadata_4_artist(self, artist: ArtistId) -> Metadata.Artist:
247247
:param artist: ArtistId:
248248
249249
"""
250-
response = self.send("GET",
250+
response = self.sendToUrl("GET", "https://spclient.wg.spotify.com",
251251
"/metadata/4/artist/{}".format(artist.hex_id()),
252252
None, None)
253253
ApiClient.StatusCodeException.check_status(response)
@@ -264,7 +264,7 @@ def get_metadata_4_show(self, show: ShowId) -> Metadata.Show:
264264
:param show: ShowId:
265265
266266
"""
267-
response = self.send("GET",
267+
response = self.sendToUrl("GET", "https://spclient.wg.spotify.com",
268268
"/metadata/4/show/{}".format(show.hex_id()), None,
269269
None)
270270
ApiClient.StatusCodeException.check_status(response)

0 commit comments

Comments
 (0)