441 Commits

Author SHA1 Message Date
Deluan
21bc2a97d3
Don't refresh smart playlists when generating covers 2026-01-02 20:20:20 +00:00
Deluan
514c92997e
Implement new Artist refresh 2026-01-02 20:20:18 +00:00
Deluan
e44a9574b9
Remove CoverArtID, fix tests 2026-01-02 20:20:17 +00:00
Deluan
9236e18631
Remove current artwork implementation 2026-01-02 20:20:17 +00:00
Deluan
4fc0610558
Move album refresh to scanner 2026-01-02 20:20:17 +00:00
Deluan
e8d8fdd8eb
Remove old refresh code 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
e0bfb22007
Rename log.LevelCritical to log.LevelFatal 2026-01-02 20:20:16 +00:00
Deluan
2afc93bb9b
Add missing context to logger calls 2026-01-02 20:16:00 +00:00
Deluan
e833042f99
Fix adding songs to plain playlists 2026-01-02 20:15:59 +00:00
Deluan
260813a4b8
Don't allow adding songs to smart playlists 2026-01-02 20:15:58 +00:00
Deluan
f729efebbc
Add nilerr linter 2026-01-02 20:15:58 +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
b980a77f5c
Add test for WithTx 2026-01-02 20:14:54 +00:00
Deluan
54e05638d5
Upgrade to Beego 2's orm 2026-01-02 20:14:54 +00:00
Deluan
90bc1981d8
Upgrade Ginkgo to V2 2026-01-02 20:14:21 +00:00
Deluan
e632893e62
Fix logging smart playlist's song count 2026-01-02 20:11:39 +00:00
Deluan
4fb2b39d61
Remove non-album artist_ids from the DB 2026-01-02 20:09:31 +00:00
Deluan
9d40694ae6
Fix playlist cannot be empty via Subsonic API 2026-01-02 20:09:31 +00:00
Deluan
2b15f4a4ba
Optimize AlbumRepository.GetAll and add a GetAllWithoutGenres method specifically for Subsonic API, where multiple-genres are not required 2026-01-02 20:09:30 +00:00
Deluan
f73c80ffb7
Make song/album/artist endpoints read-only 2026-01-02 20:09:03 +00:00
Deluan
3c1c97354f
Fix playlist filter 2026-01-02 20:09:03 +00:00
Deluan
3ea764141f
Use new rest lib (Update receives all columns that need to be updated) 2026-01-02 20:09:03 +00:00
Deluan
23fa956d6b
Add owner_id to playlist 2026-01-02 20:09:02 +00:00
Deluan
4545cb89c3
Optimize queries by path, should speed up the scanner a bit 2026-01-02 20:09:02 +00:00
Deluan
0b3ba1aba9
Optimize basic media_file query, avoiding adding "group by" or joining with genres if not required 2026-01-02 20:09:01 +00:00
Deluan
517c900602
Filter playlists by names and comments 2026-01-02 20:09:01 +00:00
Deluan
92175a3b2f
Remove temp folders after tests 2026-01-02 20:09:01 +00:00
Deluan
95cbf54403
Fix error on empty playlists. Simplify code for some operations 2026-01-02 20:09:01 +00:00
Deluan
507223ea40
Load playlist track genres 2026-01-02 20:09:01 +00:00
Deluan
4425ec1338
Remove duplication for loading tracks 2026-01-02 20:09:01 +00:00
Deluan
83380f2de2
Fix/Optimized Playlist tracks deletion 2026-01-02 20:09:01 +00:00
Deluan
9ca4fb538b
Optimize playlist updates 2026-01-02 20:09:00 +00:00
Deluan
1475597c16
Fix Genre field and Contains/NotContains/StartsWith/EndsWith in Criteria (Smart Playlists) 2026-01-02 20:09:00 +00:00
Deluan
8edfcd2c8d
Increase updatePlaylist chunk to 100 tracks 2026-01-02 20:09:00 +00:00
Deluan
8d2f921919
Speed up Subsonic GetPlaylist (by optimizing loadTracks) 2026-01-02 20:09:00 +00:00
Deluan
54996563ed
Make SmartPlaylists read-only 2026-01-02 20:08:59 +00:00
Deluan
a2264b3d39
Update stats of Smart Playlist when it is created
Also fix loadTracks
2026-01-02 20:08:59 +00:00
Deluan
674aab0ce5
Don't import invalid .nsp files 2026-01-02 20:08:59 +00:00
Deluan
1ccae7b21c
Use new Criteria and remove SmartPlaylist struct 2026-01-02 20:08:59 +00:00
Deluan
9aed87531c
Include never played songs in the "not in the last" operator 2026-01-02 20:08:59 +00:00
Deluan
7a8f703eaf
Fix smart playlist refreshing only after the tracks were loaded 2026-01-02 20:08:59 +00:00
Deluan
9033efc971
Cache smart playlist refreshes for 5 seconds 2026-01-02 20:08:59 +00:00
Deluan
56fb82a29a
First version of SmartPlaylists being generated on demand 2026-01-02 20:08:58 +00:00
Deluan
874926481b
Add methods to Playlist model
Also, don't load genres for Playlists tracks (not necessary for now)
2026-01-02 20:08:58 +00:00
Deluan
2939c96bd8
Reduce number of queries for some playlists operations.
Also allow admins to update/delete playlists from other users in the Subsonic API. Closes #1366
2026-01-02 20:08:58 +00:00
Deluan
3820b5ba1e
Fix time-based tests (again) 2026-01-02 20:08:58 +00:00
Deluan
06ed0b530b
Fix rules serialization 2026-01-02 20:08:58 +00:00
Deluan
c1ba89c0d9
Fix time-based tests 2026-01-02 20:08:58 +00:00