subsonic: set User Agent header in requests

This commit is contained in:
Philipp Wolfer 2025-07-14 14:54:43 +02:00
parent 614df100ac
commit c034d7197c
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@
still read. still read.
- deezer-history: new backend to import listens and loves from Deezer data export. - deezer-history: new backend to import listens and loves from Deezer data export.
- deezer: fixed endless export loop if the user's listen history was empty. - deezer: fixed endless export loop if the user's listen history was empty.
- subsonic: set User Agent header in requests.
- dump: it is now possible to specify a file to write the text output to. - dump: it is now possible to specify a file to write the text output to.
- Fixed potential issues with MusicBrainz rate limiting. - Fixed potential issues with MusicBrainz rate limiting.
- Fixed import log output duplicating. - Fixed import log output duplicating.

View file

@ -61,6 +61,7 @@ func (b *SubsonicApiBackend) InitConfig(config *config.ServiceConfig) error {
BaseUrl: config.GetString("server-url"), BaseUrl: config.GetString("server-url"),
User: config.GetString("username"), User: config.GetString("username"),
ClientName: version.AppName, ClientName: version.AppName,
UserAgent: version.UserAgent(),
} }
b.password = config.GetString("token") b.password = config.GetString("token")
return nil return nil