diff --git a/src/utils/spotify/player/playlist.test.ts b/src/utils/spotify/player/playlist.test.ts index 1015bc1..eb9e7a8 100644 --- a/src/utils/spotify/player/playlist.test.ts +++ b/src/utils/spotify/player/playlist.test.ts @@ -54,7 +54,7 @@ describe("SpotifyPlaylistService", () => { expect(playlist.id).toBe(testPlaylist.id); expect(playlist.name).toBe(testPlaylist.name); expect(playlist.description).toBe(testPlaylist.description); - expect(playlist.url).toBe(testPlaylist.external_urls.spotify); + expect(playlist.url).toBe(testPlaylist.href); expect(playlist.uri).toBe(testPlaylist.uri); expect(playlist.coverImageUrl).toBe( getBiggestImageUrl(testPlaylist.images) diff --git a/src/utils/spotify/player/playlist.ts b/src/utils/spotify/player/playlist.ts index 3cb827e..ae89e80 100644 --- a/src/utils/spotify/player/playlist.ts +++ b/src/utils/spotify/player/playlist.ts @@ -38,7 +38,7 @@ export class SpotifyPlaylistService { } public get url(): string { - return this._playlist?.external_urls.spotify ?? ""; + return this._playlist?.href ?? ""; } public get uri(): string {