From 703d9fc3ed32d0de9198641da28dbe78fcc0e96f Mon Sep 17 00:00:00 2001 From: Delusoire <71462480+Delusoire@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:56:18 +0100 Subject: [PATCH] fix(extensions/bookmark): content_uri migration support (#2688) --- Extensions/bookmark.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Extensions/bookmark.js b/Extensions/bookmark.js index 130eb31200..e555ca1299 100644 --- a/Extensions/bookmark.js +++ b/Extensions/bookmark.js @@ -285,7 +285,8 @@ } else { meta.description = Player.data.item.metadata.artist_name; } - const contextUri = URI.fromString(Spicetify.Player.data.context_uri); + const playerState = Spicetify.Player.data; + const contextUri = URI.fromString(playerState.context_uri ?? playerState.context.uri); if (contextUri && (contextUri.type === URI.Type.PLAYLIST || contextUri.type === URI.Type.PLAYLIST_V2 || contextUri.type === URI.Type.ALBUM)) { meta.context = `/${contextUri.toURLPath()}?uid=${Player.data.item.uid}`; }