3723 Commits

Author SHA1 Message Date
Deluan
b8ac62a13b
Fix lint error 2026-01-02 20:36:57 +00:00
Deluan
880af2efe1
Refactor random.WeightedChooser, unsing generics 2026-01-02 20:36:57 +00:00
Deluan
4052be2373
Simplify resources.FS 2026-01-02 20:36:57 +00:00
Deluan
e34c657e42
Simplify image format detection code 2026-01-02 20:36:57 +00:00
Deluan
e08e353763
Improve resizeImage code readability 2026-01-02 20:36:57 +00:00
Rob Emery
ef14eb74f9
Fix memory leak in CachedGenreRepository (#3031)
that the scanner was run, the ttlcache was also created each time.
This caused (under testing with 166 genres in the database) the
memory consumed by navidrome to 101.18MB over approx 3 days; 96%
of which is in instances of this cache. Swapping to a singleton
has reduced this to down to ~ 2.6MB

Co-authored-by: Rob Emery <git@mintsoft.net>
2026-01-02 20:36:57 +00:00
Fynn Petersen-Frey
9bae65167c
fix bug in jukebox: property unavailable (#3024)
* fix bug in jukebox: property unavailable

* fix lint error
2026-01-02 20:36:57 +00:00
Deluan
42812165a7
Fix race condition 2026-01-02 20:36:57 +00:00
Deluan
ffbc1cebd4
Associate main entities with library 2026-01-02 20:36:57 +00:00
Deluan
82e79073cd
Store MusicFolder as a library in DB 2026-01-02 20:36:57 +00:00
Deluan
b0f6a395a8
Rename MediaFolder to Library 2026-01-02 20:36:57 +00:00
Deluan
7057bd104d
Refactor to use more Go 1.22 features 2026-01-02 20:36:56 +00:00
Deluan
00278543d8
Update Go to 1.22.3 2026-01-02 20:36:56 +00:00
Deluan
7f1e10d419
Change dsf mime-type to audio/x-dsf.
Fix #3021
2026-01-02 20:36:56 +00:00
Deluan
4227ec0a01
Revert "Add download link to PR" workflow 2026-01-02 20:36:56 +00:00
Deluan
f22aeee58f
Remove duplicated test 2026-01-02 20:36:56 +00:00
Deluan
5d8b10635e
Simplify random.Int64 usage with generics 2026-01-02 20:36:56 +00:00
Deluan
af627aa18e
Refactor random functions 2026-01-02 20:36:56 +00:00
Deluan
2b13262b25
Uses Unix milliseconds support from standard Go lib 2026-01-02 20:36:56 +00:00
Deluan
56964b676d
Refactor cache.HTTPClient 2026-01-02 20:36:56 +00:00
Deluan
d6d65b43ae
Refactor merge.FS 2026-01-02 20:36:56 +00:00
Deluan
31615394c0
Fix "Add download link to PR" workflow 2026-01-02 20:36:56 +00:00
Deluan
0a5c72e8f2
Add samplingRate to OpenSubsonic responses 2026-01-02 20:36:56 +00:00
Deluan
4007dd0560
Add sampleRate to the DB 2026-01-02 20:36:56 +00:00
Deluan
caa2126677
Read sampleRate from audio files 2026-01-02 20:36:56 +00:00
Deluan
d68cdac3d2
Do not panic if when updatePlaylist is called with a non-existent ID.
Fix #2876
2026-01-02 20:36:55 +00:00
edthu
8941ae980a
Add Catppuccin Macchiato Theme (#3014)
* Added Catppuccin Macchiato theme

* fixed index.js formatting
2026-01-02 20:36:55 +00:00
Deluan
67b997f772
Bump actions/github-script to v7 2026-01-02 20:36:55 +00:00
Deluan
0f713e20af
Bump actions/stale and dessant/lock-threads versions 2026-01-02 20:36:55 +00:00
Deluan
14a379e16c
Replace sync.WaitGroup with more appropriate errgroup.Group 2026-01-02 20:36:55 +00:00
Deluan
519c8f465b
Fix M3U mimetype on Debian Bullseye 2026-01-02 20:36:55 +00:00
Deluan
453e1371b6
Update Go to 1.22.3 2026-01-02 20:36:55 +00:00
Valeri Sokolov
faa684fb95
fix: languageName for Persian (#3011)
"انگلیسی" is "English"
2026-01-02 20:36:55 +00:00
Deluan
df22d69765
Simplify normalized AlbumPlayCountMode calc 2026-01-02 20:36:55 +00:00
Deluan
a6ac8df301
Remove unused code 2026-01-02 20:36:55 +00:00
Deluan
5be6dfc54b
Clean up runNavidrome function 2026-01-02 20:36:55 +00:00
Deluan Quintão
9e9f72ae8a
Make sorting lists by name/title case-insensitive (#2993)
* Make sort by order_* fields case-insensitive.

* Sort internet radios by name case-insensitive
2026-01-02 20:36:55 +00:00
Deluan Quintão
9ff3145845
Terminate all MPV instances when stopping Navidrome (#3008)
* Terminate all mpv instances when stopping Navidrome

* Exit trackSwitcher goroutine when terminating

* Remove potential race condition when starting the Playback device

* Fix lint error

* Removed unused and unneeded vars/functions

* Use device short name in log

* Small refactor

* Small nitpick

* Make start functions more uniform
2026-01-02 20:36:55 +00:00
Deluan
6640509044
Make dependency injection more consistent 2026-01-02 20:36:55 +00:00
Deluan
b20e3ae337
Fix migration package name mismatch 2026-01-02 20:36:54 +00:00
Deluan
d94e73236b
Change default transcodings to a proper typed struct 2026-01-02 20:36:54 +00:00
Deluan
7500b17eb1
Fix ambiguous column when sorting media_files by created_at.
Fix #3006
2026-01-02 20:36:54 +00:00
Deluan
ad89e02a93
Limit access to Jukebox for admins only (configurable).
Closes #2849
2026-01-02 20:36:54 +00:00
Deluan
e569f80796
Bump Go dependencies 2026-01-02 20:36:52 +00:00
Matthias Schmidt
7cd38f9742
Guard against missing active track (#2996)
Co-authored-by: Deluan Quintão <deluan@navidrome.org>
2026-01-02 20:36:35 +00:00
Matthias Schmidt
2c6216817d
Persist adjusted volume (#2997)
Co-authored-by: Deluan Quintão <deluan@navidrome.org>
2026-01-02 20:36:35 +00:00
Ludovic Fernandez
6d8557b6bb
Improves golangci-lint configuration and workflow (#3004)
* chore: the default Go version is based on the go.mod

* chore: use linter configuration instead of exclude-rules

* chore: update workflow
2026-01-02 20:36:35 +00:00
Deluan
1a2683fe75
Pin golangci-lint-action version as a workaround to fix the pipeline.
See https://github.com/golangci/golangci-lint/issues/4695
2026-01-02 20:36:35 +00:00
Deluan
96e011efc0
Fix CollapsibleComment in PlaylistDetails. Closes #2992 2026-01-02 20:36:35 +00:00
Deluan
3459141f8c
Add HTTPSecurityHeaders.CustomFrameOptionsValue option.
Requested in https://github.com/navidrome/navidrome/issues/248#issuecomment-1783768985
2026-01-02 20:36:33 +00:00