blob: 014f5b2800181ad5ca34503fd00b33fbb1a6b7da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 0c641e5b151ed047ad17eac6d6491f49f29ea853 Mon Sep 17 00:00:00 2001
From: Zhang Hua <zhanghua.00@qq.com>
Date: Fri, 27 Dec 2024 18:23:59 +0800
Subject: [PATCH 2/2] Remove broken sp://product-state/v1/values
---
src/services/api.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/services/api.js b/src/services/api.js
index 6f207c9..a6c6f47 100644
--- a/src/services/api.js
+++ b/src/services/api.js
@@ -4,7 +4,7 @@ const Api = (() => {
}
async function isPremium() {
- let data = await Spicetify.CosmosAsync.get("sp://product-state/v1/values")
+ let data = (await Spicetify.Platform.ProductStateAPI.productStateApi.getValues()).pairs
if (data.catalogue == "premium" || data.name == "Spotify Premium" || data.type == "premium") {
return true
} else {
--
2.47.1
|