🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Enable Last.fm scrobbling by default (still requires user's authorization)
Deluan26bcf0b87761
diff --git a/conf/configuration.go b/conf/configuration.goindex b3ab11c1b..9a97be9de 100644--- a/conf/configuration.go+++ b/conf/configuration.go@@ -228,7 +228,7 @@ func init() {viper.SetDefault("devFastAccessCoverArt", false)viper.SetDefault("devactivitypanel", true)viper.SetDefault("devenableshare", false)- viper.SetDefault("devenablescrobble", false)+ viper.SetDefault("devenablescrobble", true)}func InitConfig(cfgFile string) {diff --git a/server/serve_index_test.go b/server/serve_index_test.goindex f524801b3..c252ee700 100644--- a/server/serve_index_test.go+++ b/server/serve_index_test.go@@ -207,7 +207,7 @@ var _ = Describe("serveIndex", func() {serveIndex(ds, fs)(w, r)config := extractAppConfig(w.Body.String())- Expect(config).To(HaveKeyWithValue("devEnableScrobble", false))+ Expect(config).To(HaveKeyWithValue("devEnableScrobble", true))})It("sets the lastFMApiKey", func() {diff --git a/ui/src/player/PlayerEdit.js b/ui/src/player/PlayerEdit.jsindex 9b50f7955..6207ad4f4 100644--- a/ui/src/player/PlayerEdit.js+++ b/ui/src/player/PlayerEdit.js@@ -11,6 +11,7 @@ import {useTranslate,} from 'react-admin'import { Title } from '../common'+import config from '../config'const PlayerTitle = ({ record }) => {const translate = useTranslate()@@ -47,7 +48,9 @@ const PlayerEdit = (props) => (]}/><BooleanInput source="reportRealPath" fullWidth />- <BooleanInput source="scrobbleEnabled" fullWidth />+ {config.devEnableScrobble && (+ <BooleanInput source="scrobbleEnabled" fullWidth />+ )}<TextField source="client" /><TextField source="userName" /></SimpleForm>