Deluan
50870d3e61
fix(ui): sort by favourited
2024-09-19 13:05:26 -04:00
Deluan
5baf0b80aa
fix(ui): sort playlist by song duration ( #3284 )
2024-09-19 08:45:49 -04:00
Deluan
46be041e7b
fix(scanner): improve M3U playlist import times ( #2706 )
2024-09-18 20:12:12 -04:00
Kendall Garner
1ba390a72a
random -> SEEDRAND ( #3274 )
2024-09-17 17:03:12 -04:00
Deluan Quintão
8134edb5d1
Fix genre and id filters ( #3273 )
2024-09-17 16:59:55 -04:00
Reilly MacKenzie-Cree
d683688b0e
Recursively refresh playlist tracks within smart playlist rules ( #3018 )
...
* Recursively refresh playlists within smart playlist rules
Signed-off-by: reillymc <reilly@mackenzie-cree.net >
* Clean up recursive smart playlist functions
Signed-off-by: reillymc <reilly@mackenzie-cree.net >
* Add smart playlist refresh timeout config and tests for nested track refetching
Signed-off-by: reillymc <reilly@mackenzie-cree.net >
* Change SmartPlaylistRefreshTimeout to SmartPlaylistRefreshDelay, increase default value
* Revert `smartPlaylistRefreshDelay` default to 5 seconds
---------
Signed-off-by: reillymc <reilly@mackenzie-cree.net >
Co-authored-by: Deluan <deluan@navidrome.org >
2024-09-15 13:27:54 -04:00
Deluan
3107170afd
Improve SQL sanitization
2024-09-14 18:53:34 -04:00
Deluan
e65eb225c8
Small refactoring
...
- Remove duplication
- Remove warning about builtin keyword `new`
2024-09-13 20:18:00 -04:00
Deluan
eaa7f7c7e9
Fix Player filter
2024-08-05 18:21:21 -04:00
Kendall Garner
fa85e2a781
Use userId in player, other fixes ( #3182 )
...
* [bugfix] player: use userId, other fixes
This PR primarily resolves #1928 by switching the foreign key of `player` from `user.user_name` to `user.id`.
There are also a few other fixes/changes:
- For some bizarre reason, `ip_address` is never returned from `read`/`get`. Change the field to `ip`, which works. Somehow
- Update `players_test.go` mock to also check for user agent, replicating the actual code
- Update `player_repository.go` `isPermitted` to check user id. I don't know how this worked before...
- tests!
- a few places referred to `typ`, when it is really `userAgent`. Change the field names
* baseRequest -> selectPlayer
* remove comment
* update migration, make all of persistence foreign key enabled
* maybe don't forget to save the file first
2024-08-03 13:37:21 -04:00
Deluan
47378c6882
Remove unnecessary annotation table primary key
2024-06-29 11:45:41 -04:00
Deluan
7111535963
Don't panic on PostScan errors. Fix #3118
2024-06-25 17:14:17 -04:00
Kendall Garner
88eac6d7f3
fix album/media file random sort ( #3089 )
2024-06-12 21:06:59 -04:00
Deluan
11bef060a3
Small refactoring
2024-06-05 22:40:22 -04:00
Deluan
abe5690018
Refactor string utilities into its own package str
2024-06-05 22:09:27 -04:00
Deluan
8c3919d6a0
Simplify dbx wrapper
2024-06-01 15:01:28 -04:00
Deluan
55bff343cd
Optimize SQLite3 access. Mainly separate read access from write access.
...
Based on tips from https://archive.is/Xfjh6#selection-257.0-278.0
2024-05-21 17:19:41 -04:00
Deluan
643c763cb4
Show number of results from a query in the logs
2024-05-20 16:21:41 -04:00
Deluan
3977ef6e0f
Make first WebUI random page stick
2024-05-19 12:35:30 -04:00
Guilherme Souza
98218d045e
Deterministic pagination in random albums sort ( #1841 )
...
* Deterministic pagination in random albums sort
* Reseed on first random page
* Add unit tests
* Use rand in Subsonic API
* Use different seeds per user on SEEDEDRAND() SQLite3 function
* Small refactor
* Fix id mismatch
* Add seeded random to media_file (subsonic endpoint `getRandomSongs`)
* Refactor
* Remove unneeded import
---------
Co-authored-by: Deluan <deluan@navidrome.org >
2024-05-18 14:10:53 -04:00
Deluan
478c709a64
Associate main entities with library
2024-05-12 21:37:42 -04:00
Deluan
477bcaee58
Store MusicFolder as a library in DB
2024-05-12 21:37:42 -04:00
Deluan
081ef85db6
Rename MediaFolder to Library
2024-05-12 21:37:42 -04:00
Deluan
ed83c22632
Do not panic if when updatePlaylist is called with a non-existent ID.
...
Fix #2876
2024-05-11 15:37:50 -04:00
Deluan
09d1fd0658
Simplify normalized AlbumPlayCountMode calc
2024-05-09 08:13:42 -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
62cc8a2d4b
Fix ambiguous column when sorting media_files by created_at.
...
Fix #3006
2024-05-08 08:24:26 -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
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
92a98cd558
Add tests for AlbumPlayCountMode, change the calc to match the request from #1032
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
Deluan
f5df948eb1
Fix scrobble error spam in the logs.
...
Relates to #2831 and #2975
2024-04-26 16:59:14 -04:00
Deluan
78182f40d6
Block regular users from changing their own playlists ownership
2024-04-20 12:08:07 -04:00
looklose
22cc9e0cd5
Fix function name in comment ( #2947 )
...
Signed-off-by: looklose <shishuaiqun@yeah.net >
2024-04-10 12:53:21 -04:00
Deluan
176329343a
Send Subsonic formatted response on marshalling errors
2024-02-17 10:39:29 -05:00
Deluan
6d253225de
Use order/sort album/artist when sorting tracks in playlists. Fixes #2819
2024-02-15 21:52:00 -05:00
Deluan
fa7cc40d23
Add tests for toSQL
2024-01-27 12:16:38 -05:00
caiocotts
58218e6dc4
Fix fields not being sent on getPlaylist.view responses.
2024-01-26 12:41:55 -05:00
Deluan
2b33ef72e3
Remove offset and limit from count queries. Fixes #2443
2024-01-20 22:02:05 -05:00
Deluan
2fb913f5c9
Add log message to try to capture error in #2735
2024-01-20 20:18:59 -05:00
Deluan
e50382e3bf
Fix ReplayGain values not being retrieved from DB
2023-12-27 21:14:54 -05:00
Deluan
7ccf685973
Fix PreferSortTags
2023-12-14 21:45:47 -05:00
Deluan
2aef227572
Add context to SQL queries, enabling cancellation
2023-12-14 17:13:09 -05:00
Deluan Quintão
ab53313273
Add new PrefSortTags option ( #2696 )
2023-12-11 20:37:11 -05:00
Deluan
465cc091b0
Convert internal disc number representation to int
2023-12-09 13:53:38 -05:00
Deluan
af7eead037
Add discs to album
2023-12-09 13:53:38 -05:00