feat: unblock libre.fm and update requirements for listenbrainz
This commit is contained in:
parent
4a1ac73420
commit
2952034d7d
2 changed files with 6 additions and 6 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue