mirror of
https://git.sr.ht/~phw/scotty
synced 2025-07-15 21:03:35 +02:00
subsonic: set User Agent header in requests
This commit is contained in:
parent
614df100ac
commit
c034d7197c
2 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue