Merge pull request #313 from DraftKinner/main
Extend use of spclient.wg.spotify.com for album, artist, and show met…
This commit is contained in:
@@ -229,7 +229,7 @@ class ApiClient(Closeable):
|
|||||||
:param album: AlbumId:
|
:param album: AlbumId:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
response = self.send("GET",
|
response = self.sendToUrl("GET", "https://spclient.wg.spotify.com",
|
||||||
"/metadata/4/album/{}".format(album.hex_id()),
|
"/metadata/4/album/{}".format(album.hex_id()),
|
||||||
None, None)
|
None, None)
|
||||||
ApiClient.StatusCodeException.check_status(response)
|
ApiClient.StatusCodeException.check_status(response)
|
||||||
@@ -247,7 +247,7 @@ class ApiClient(Closeable):
|
|||||||
:param artist: ArtistId:
|
:param artist: ArtistId:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
response = self.send("GET",
|
response = self.sendToUrl("GET", "https://spclient.wg.spotify.com",
|
||||||
"/metadata/4/artist/{}".format(artist.hex_id()),
|
"/metadata/4/artist/{}".format(artist.hex_id()),
|
||||||
None, None)
|
None, None)
|
||||||
ApiClient.StatusCodeException.check_status(response)
|
ApiClient.StatusCodeException.check_status(response)
|
||||||
@@ -264,7 +264,7 @@ class ApiClient(Closeable):
|
|||||||
:param show: ShowId:
|
:param show: ShowId:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
response = self.send("GET",
|
response = self.sendToUrl("GET", "https://spclient.wg.spotify.com",
|
||||||
"/metadata/4/show/{}".format(show.hex_id()), None,
|
"/metadata/4/show/{}".format(show.hex_id()), None,
|
||||||
None)
|
None)
|
||||||
ApiClient.StatusCodeException.check_status(response)
|
ApiClient.StatusCodeException.check_status(response)
|
||||||
|
|||||||
Reference in New Issue
Block a user