415 Commits

Author SHA1 Message Date
Deluan
9236e18631
Remove current artwork implementation 2026-01-02 20:20:17 +00:00
Deluan
9cf05a6b60
Moved logic of collapsing songs into albums to model package
(it should really be called domain.... maybe will rename it later)
2026-01-02 20:20:17 +00:00
Deluan
542496b2f3
Replace MinInt/MaxInt with generic versions 2026-01-02 20:20:17 +00:00
Deluan
e0bfb22007
Rename log.LevelCritical to log.LevelFatal 2026-01-02 20:20:16 +00:00
Deluan
ecf3f9b934
Add command line M3U exporter. Closes #1914 2026-01-02 20:20:16 +00:00
Kendall Garner
b130c69cfd
Enable transcoding of downlods (#1667)
* feat(download): Enable transcoding of downlods - #573

Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com>

* feat(download): Make automatic transcoding of downloads optional

Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com>

* Fix spelling

* address changes

* prettier

* fix config

* use previous name

Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com>
2026-01-02 20:19:53 +00:00
Deluan
71c9048029
Fix overriding previous logger in context 2026-01-02 20:19:52 +00:00
Deluan
172e1a4054
Add endpoints in Subsonic API logs 2026-01-02 20:19:52 +00:00
Deluan
54eb2b7aea
Add username to authenticated log messages 2026-01-02 20:19:52 +00:00
Deluan
5fef41681b
Some cleanup, fixes typos and grammar errors 2026-01-02 20:19:52 +00:00
Deluan
650989c871
Some cleanup, adding missing context handling 2026-01-02 20:19:52 +00:00
Deluan
70fb77ad50
Bump github.com/bradleyjkemp/cupaloy to v2.8.0 2026-01-02 20:18:17 +00:00
Deluan
c4d13acadb
Fix background images when BaseURL is specified 2026-01-02 20:17:48 +00:00
Deluan
294eadf19e
Remove math/rand and only use crypto/rand 2026-01-02 20:17:21 +00:00
Deluan
bac1a22a68
Host default login background images in Navidrome's own website 2026-01-02 20:17:21 +00:00
Deluan
7028cc05f5
Compress more http content-types.
Also, some minor refactoring
2026-01-02 20:17:20 +00:00
Deluan
4b338dcf3d
Simplify Subsonic API handler implementation 2026-01-02 20:16:00 +00:00
Deluan
34bd983ef5
Shutdown gracefully, close DB connection 2026-01-02 20:16:00 +00:00
Deluan
e90044164d
Add DefaultUIVolume option. Closes #1679 2026-01-02 20:16:00 +00:00
Deluan
2afc93bb9b
Add missing context to logger calls 2026-01-02 20:16:00 +00:00
Deluan
9f279bf32a
Fix potential nil pointer dereference 2026-01-02 20:16:00 +00:00
Deluan
c45ec227ec
Reduce spurious error/warn messages, if loglevel != debug 2026-01-02 20:16:00 +00:00
Deluan
3718ce1fe4
Add TrackNumber to "fake" generated filenames. Fixes #1912 2026-01-02 20:16:00 +00:00
Deluan
1e939448af
Add played field to Subsonic API responses. Fix #1971
This is not an "official" field in the specification, but I guess it does not hurt to expose this ;)
2026-01-02 20:15:59 +00:00
Deluan
f29fe31237
Restore DefaultLanguage case-sensitiveness by reverting commit bfeb8ef6b3e5756d72b230abdbb96f8a31b2e2f.
Language code should be case-sensitive. Fix #1946. Supersedes #1947.
2026-01-02 20:15:59 +00:00
Deluan
d66b04750b
Add errorlint linter 2026-01-02 20:15:58 +00:00
Deluan
03128f2b97
Fix error comparisons 2026-01-02 20:15:58 +00:00
Deluan
b73a134d00
Add exportloopref linter 2026-01-02 20:15:58 +00:00
Deluan
6dab8f3474
DefaultLanguage is now case-insensitive 2026-01-02 20:15:30 +00:00
Andy Klimczak
b560dad1bc
feat: Add listenbrainz base url configuration (#1774)
* feat: Add listenbrainz base url configuration

- ListenBrainz.BaseURL config value

* Don't need to store baseUrl

* Use `url.JoinPath` to concatenate url paths

* Replace url.JoinPath (Go 1.19 only) with custom function

Co-authored-by: Deluan <deluan@navidrome.org>
2026-01-02 20:15:29 +00:00
Deluan
74a62a3973
New config DefaultLanguage. Closes #1561 2026-01-02 20:15:29 +00:00
Manuel
e81048135b
fix:(middlewares.go) - Set Cookie SameSite mode to Strict - 1776 (#1777)
* None is deprecated and will fallback to Lax in the future.
* Using Strict is future proof and provides additional CSR protection

Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com>

Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com>
2026-01-02 20:15:29 +00:00
Kendall Garner
822c364645
Fix creating server (#1894) 2026-01-02 20:15:29 +00:00
Deluan
f72d8d148b
Fix GO-S2114 security issue
See https://deepsource.io/directory/analyzers/go/issues/GO-S2114
2026-01-02 20:14:54 +00:00
Deluan
e6ba5a2229
Only compute version once 2026-01-02 20:14:54 +00:00
Deluan
2ae0520108
Remove //+build tags, as the code does not compile on older versions of Go anymore 2026-01-02 20:14:54 +00:00
Deluan
e0ac640d4e
Add more info in search log message 2026-01-02 20:14:22 +00:00
Deluan
dac39d1d4f
Add log warn when request is cancelled/interrupted 2026-01-02 20:14:22 +00:00
Deluan
f2b02d042b
Speed up /search subsonic endpoints by parallelizing the queries 2026-01-02 20:14:22 +00:00
Deluan
4bfceb3710
Simplify Singleton usage by leveraging Go 1.18's generics 2026-01-02 20:14:22 +00:00
Deluan
90bc1981d8
Upgrade Ginkgo to V2 2026-01-02 20:14:21 +00:00
Deluan
6a3318ee78
Return 501 for "not implemented". Fixes #1785 2026-01-02 20:13:58 +00:00
Deluan
96b105e62b
Add IP to Subsonic API's invalid login log messages. Closes #1814 2026-01-02 20:13:57 +00:00
Deluan
e1c6fcc750
Upgrade golangci-lint and fix new lint error 2026-01-02 20:13:54 +00:00
Deluan
913d75b9f2
Fix loading overridden translations from ${DataFolder}/resources/i18n 2026-01-02 20:11:58 +00:00
Deluan
dd117130ff
Fix playCount casing 2026-01-02 20:11:57 +00:00
Deluan
7be85ed032
Better logging for agents configuration 2026-01-02 20:11:57 +00:00
Deluan
f11ea0c7ce
Add userRating to Subsonic Album/Artist responses. Closes #1486 2026-01-02 20:11:39 +00:00
Brice Johnson
0bec8f35c4
Allowing 3rd party UIs to access x-total-count http header (#1470)
* Adding 'x-content-duratin' and 'x-total-count' to CORS exposed headers

* Moving cors setup to middlewares.go

* adding x-nd-authorization to exposed headers
2026-01-02 20:11:39 +00:00
Steve Richter
babc48c29d
Rename ListenBrainz config flag and enable by default (#1443) 2026-01-02 20:11:36 +00:00