Deluan
747069b229
Remove unused code
2024-05-09 07:47:32 -04:00
Deluan
885cd345ab
Clean up runNavidrome function
2024-05-09 07:44:08 -04:00
Deluan Quintão
c4b05dac28
Make sorting lists by name/title case-insensitive ( #2993 )
...
* Make sort by order_* fields case-insensitive.
* Sort internet radios by name case-insensitive
2024-05-09 07:08:15 -04:00
Deluan Quintão
6408dda948
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
2024-05-09 06:57:24 -04:00
Deluan
677d9947f3
Make dependency injection more consistent
2024-05-08 22:21:38 -04:00
Deluan
a0290587b9
Fix migration package name mismatch
2024-05-08 19:54:48 -04:00
Deluan
eb93136b3f
Change default transcodings to a proper typed struct
2024-05-08 17:39:25 -04:00
Deluan
62cc8a2d4b
Fix ambiguous column when sorting media_files by created_at.
...
Fix #3006
2024-05-08 08:24:26 -04:00
Deluan
dd4374cec6
Limit access to Jukebox for admins only (configurable).
...
Closes #2849
2024-05-07 19:35:43 -04:00
Deluan
86567f5406
Bump Go dependencies
2024-05-07 19:26:02 -04:00
Matthias Schmidt
ff8dca5abe
Guard against missing active track ( #2996 )
...
Co-authored-by: Deluan Quintão <deluan@navidrome.org>
2024-05-07 19:22:39 -04:00
Matthias Schmidt
b3d70e9264
Persist adjusted volume ( #2997 )
...
Co-authored-by: Deluan Quintão <deluan@navidrome.org>
2024-05-07 19:21:35 -04:00
Ludovic Fernandez
4d29184998
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
2024-05-07 18:52:26 -04:00
Deluan
2470471b2b
Pin golangci-lint-action version as a workaround to fix the pipeline.
...
See https://github.com/golangci/golangci-lint/issues/4695
2024-05-06 21:53:47 +02:00
Deluan
544ae90ec1
Fix CollapsibleComment in PlaylistDetails. Closes #2992
2024-05-02 13:48:10 -04:00
Deluan
aef49cb8d6
Add HTTPSecurityHeaders.CustomFrameOptionsValue
option.
...
Requested in https://github.com/navidrome/navidrome/issues/248#issuecomment-1783768985
2024-05-02 12:35:16 -04:00
Deluan
7c5eec715d
Fix typo
2024-05-01 23:09:11 -04:00
Kendall Garner
a4c2232041
Sort repeated lyrics that may be out of order ( #2989 )
...
With synchronized lyrics with repeated text, there is not a guarantee that the repeat is in order (e.g. `[00:00.00][00:10.00] a\n[00:05.00]b`).
This change will post-process lyrics with repeated timestamps in one line to ensure that it is always sorted.
2024-05-01 21:54:46 -04:00
Deluan
8f11b991d2
Bump Go dependencies
2024-05-01 20:40:34 -04:00
Deluan
d4a9a9e555
Fix PlaylistTracks's loadAllGenres. Fix #2988
2024-05-01 20:17:42 -04:00
Deluan
a8955f24e0
Fix AlbumPlayCountMode. Closes #2984
2024-05-01 20:05:36 -04:00
Deluan
2c06a4234e
Fix int types in OpenSubsonic responses.
...
Refer to https://support.symfonium.app/t/symfonium-sync-crashes-when-tpos-is-not-an-int/4204
2024-05-01 13:57:11 -04:00
Deluan
7ab7b5df5e
Fix signaler on Windows
2024-04-28 18:32:28 -04:00
Deluan
3d9fff36f7
Use signal.NotifyContext
2024-04-28 17:44:11 -04:00
Deluan
31fcab07d2
Refactor loadGenres, remove duplication
2024-04-28 17:04:12 -04:00
Deluan
de90152a71
Refactor DB Album mapping to model.Album
2024-04-28 13:51:57 -04:00
Deluan
27875ba2dd
Load mime_types from external file
2024-04-28 12:18:24 -04:00
Deluan
28f7ef43c1
Remove AlbumPlayCountMode from command line options
2024-04-27 20:39:16 -04:00
Deluan
92a98cd558
Add tests for AlbumPlayCountMode, change the calc to match the request from #1032
v0.52.0
2024-04-27 15:20:46 -04:00
Deluan
5d50558610
Add tests for AlbumPlayCountMode
2024-04-27 15:07:50 -04:00
vvdveen
8bff1ad512
Add AlbumPlayCountMode config option ( #2803 )
...
Closes #1032
* feat(album_repository.go): add kodi-style album playcount option - #1032
Signed-off-by: Victor van der Veen <vvdveen@gmail.com>
* fix format issue and remove reference to kodi (now normalized)
Signed-off-by: Victor van der Veen <vvdveen@gmail.com>
* reduced complexity but added rounding
Signed-off-by: Victor van der Veen <vvdveen@gmail.com>
* Use constants for AlbumPlayCountMode values
---------
Signed-off-by: Victor van der Veen <vvdveen@gmail.com>
Co-authored-by: Deluan <deluan@navidrome.org>
2024-04-27 14:10:40 -04:00
crazygolem
1e96b858a9
Add support for Reverse Proxy auth in Subsonic endpoints ( #2558 )
...
* feat(subsonic): Add support for Reverse Proxy auth - #2557
Signed-off-by: Jeremiah Menétrey <superjun1@gmail.com>
* Small refactoring
---------
Signed-off-by: Jeremiah Menétrey <superjun1@gmail.com>
Co-authored-by: Deluan Quintão <deluan@navidrome.org>
2024-04-27 13:47:42 -04:00
Deluan
aafd5a952c
Bump github.com/spf13/viper from 1.15.0 to 1.18.2
2024-04-26 22:11:43 -04:00
Deluan Quintão
d9cd5efd67
Bump Go dependencies ( #2976 )
...
* Fix build
* Bump dependencies
2024-04-26 18:21:10 -04:00
Deluan
affa9c3478
Bump github.com/pressly/goose/v3 from 3.19.2 to 3.20.0
2024-04-26 18:07:06 -04:00
Anna Smith
651a8fdaf9
Fix typo in comment ( #2974 )
2024-04-26 17:59:39 -04:00
Deluan
f7fc17c0f7
Add OpenSubsonic channelCount
2024-04-26 17:51:04 -04:00
Deluan
f5df948eb1
Fix scrobble error spam in the logs.
...
Relates to #2831 and #2975
2024-04-26 16:59:14 -04:00
crazygolem
18143fa5a1
Use the RealIP middleware also behind a reverse proxy ( #2858 )
...
* Use the RealIP middleware only behind a reverse proxy
* Fix proxy ip source in tests
* Fix test for PR#2087
The PR did not update the test after changing the behavior, but the test still
passed because another condition was preventing the user from being created in
the test.
* Use RealIP even without a trusted reverse proxy
* Use own type for context key
* Fix casing to follow go's conventions
* Do not apply RealIP middleware twice
* Fix IP source in logs
The most interesting data point in the log message is the proxy's IP, but
having the client IP too can help identify integration issues.
2024-04-25 20:43:58 -04:00
Tim
8f9ed1b994
Handling long playlist comments ( #2973 )
...
Closes #1737
* wrapping playlist comment in a <Collapse> element
* Extract common collapsible logic into a component
---------
Co-authored-by: Deluan <deluan@navidrome.org>
2024-04-25 20:28:25 -04:00
dependabot[bot]
cf66594b6d
Bump github.com/onsi/gomega from 1.32.0 to 1.33.0 ( #2968 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.32.0 to 1.33.0.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.32.0...v1.33.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 17:09:51 -04:00
Deluan
ca005f6457
Include MPV in release Docker image. Refers to #2910
2024-04-21 21:02:36 -04:00
Deluan
6dcfe4d455
Fix typo
2024-04-20 13:16:50 -04:00
Deluan
7871d69adb
Allow comments in the NSP file.
...
See comment https://github.com/navidrome/navidrome/issues/1417#issuecomment-2064731407
2024-04-20 12:50:45 -04:00
Deluan
78182f40d6
Block regular users from changing their own playlists ownership
2024-04-20 12:08:07 -04:00
Deluan
9aeaaa6610
Fix issue in https://github.com/navidrome/navidrome/issues/2767#issuecomment-2065636352
2024-04-19 12:38:02 -04:00
dependabot[bot]
068c1e9a23
Bump golang.org/x/net from 0.21.0 to 0.23.0 ( #2962 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.21.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 09:15:08 -04:00
Jonathan
bcec15dc13
Externalize MPV command template ( #2948 )
...
* externalise MPVTemplate
* Remove unnecessary comment
---------
Co-authored-by: Deluan <deluan@navidrome.org>
2024-04-15 21:31:54 -04:00
dependabot[bot]
cf6603e3ec
Bump react-icons from 5.0.1 to 5.1.0 in /ui ( #2957 )
...
Bumps [react-icons](https://github.com/react-icons/react-icons ) from 5.0.1 to 5.1.0.
- [Release notes](https://github.com/react-icons/react-icons/releases )
- [Commits](https://github.com/react-icons/react-icons/compare/v5.0.1...v5.1.0 )
---
updated-dependencies:
- dependency-name: react-icons
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 14:35:00 -04:00
dependabot[bot]
88d6757121
Bump github.com/pelletier/go-toml/v2 from 2.2.0 to 2.2.1 ( #2956 )
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.2.0...v2.2.1 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 14:34:33 -04:00