feat: unblock libre.fm and update requirements for listenbrainz

This commit is contained in:
kmmiio99o 2026-02-07 14:08:13 +01:00
parent 4a1ac73420
commit 2952034d7d
No known key found for this signature in database
GPG key ID: 163FE39F7772D2EC
2 changed files with 6 additions and 6 deletions

View file

@ -22,14 +22,14 @@ const Constants = {
},
librefm: {
name: "Libre.fm",
baseUrl: "https://libre.fm/api",
baseUrl: "https://libre.fm/2.0",
requiresApiKey: true,
requiresToken: false,
},
listenbrainz: {
name: "ListenBrainz",
baseUrl: "https://api.listenbrainz.org/1",
requiresApiKey: false,
requiresApiKey: true,
requiresToken: true,
},
} as Record<ServiceType, ServiceConfig>,

View file

@ -147,7 +147,9 @@ export default function Settings() {
? "✅ Configured"
: "❌ Missing credentials";
case "librefm":
return "❌ Service temporarily disabled";
return getStorage("librefmUsername") && getStorage("librefmApiKey")
? "✅ Configured"
: "❌ Missing credentials";
case "listenbrainz":
return getStorage("listenbrainzUsername")
? "✅ Configured"
@ -185,7 +187,6 @@ export default function Settings() {
forceUpdate();
}
}}
disabled={service === "librefm"}
/>
),
)}
@ -206,7 +207,7 @@ export default function Settings() {
/>
<TableRow
label="Libre.fm Settings"
subLabel="Disabled - not being able to test it out"
subLabel="Configure Libre.fm credentials and options"
trailing={<TableRow.Arrow />}
onPress={() =>
navigation.push("VendettaCustomPage", {
@ -214,7 +215,6 @@ export default function Settings() {
render: LibreFmSettingsPage,
})
}
disabled={true}
/>
<TableRow
label="ListenBrainz Settings"