From c034d7197ce2dc60834092f2ed999b48ae42a642 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Mon, 14 Jul 2025 14:54:43 +0200 Subject: [PATCH] subsonic: set User Agent header in requests --- CHANGES.md | 1 + internal/backends/subsonic/subsonic.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 228b101..2c590b3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ still read. - 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. +- subsonic: set User Agent header in requests. - dump: it is now possible to specify a file to write the text output to. - Fixed potential issues with MusicBrainz rate limiting. - Fixed import log output duplicating. diff --git a/internal/backends/subsonic/subsonic.go b/internal/backends/subsonic/subsonic.go index 1ffa510..11abbc8 100644 --- a/internal/backends/subsonic/subsonic.go +++ b/internal/backends/subsonic/subsonic.go @@ -61,6 +61,7 @@ func (b *SubsonicApiBackend) InitConfig(config *config.ServiceConfig) error { BaseUrl: config.GetString("server-url"), User: config.GetString("username"), ClientName: version.AppName, + UserAgent: version.UserAgent(), } b.password = config.GetString("token") return nil