Deluan
e6bfa2bb0b
Convert our usage of go-diodes into a simplified, generic version
2023-04-01 21:53:45 -04:00
Deluan
b998c05ca0
Some refactorings
2023-03-26 21:28:37 -04:00
Deluan
a134b1b608
Use sync/atomic package, now that we are at Go 1.19
2023-02-15 21:21:59 -05:00
Deluan
6dce4b2478
Remove custom atomic.Bool, we are now at Go 1.19
2023-02-15 21:18:24 -05:00
Deluan
aac6e2cb07
Add path to cookies. Fix #1580
2023-02-15 20:23:32 -05:00
Deluan
05c6cdea1a
Don't cancel transcoding session if context is canceled
2023-02-07 09:58:50 -05:00
Deluan
bfaf4a3388
Add logs to cache hunter
2023-02-06 10:41:33 -05:00
Deluan
0ce750d469
Update golangci-lint and fix lint errors
2023-02-02 11:10:28 -05:00
Deluan
4a7e86e989
Fix file descriptor leaking.
2023-02-02 10:36:49 -05:00
Deluan
d5df102f9f
Implement updateShare
and deleteShare
Subsonic endpoints
2023-01-24 18:36:46 -05:00
Deluan
20271df4fb
Workaround to detect empty dates in some Subsonic clients
2023-01-24 18:36:46 -05:00
Deluan
580e9ae4bd
Fix timer going awry
2023-01-17 22:04:09 -05:00
Deluan
7fbcb2904a
Add function number.RandomInt64
2023-01-13 21:40:24 -05:00
Deluan
769e8bedba
Rename WeightedChooser's method Put to Add, a better name
2023-01-13 19:43:27 -05:00
Deluan
fdbece5c92
Use custom sanitize package, fix #2070
2023-01-12 13:39:05 -05:00
Deluan
cc14485194
When trying to PreCache, wait for ImageCache to be available
2022-12-28 23:26:39 -05:00
Deluan
61e5523457
Handle "naked" CoverArtIDs (IDs of album, mediafiles and playlists)
2022-12-28 15:31:56 -05:00
Deluan
52a4721c91
Remove empty (invalid) entries from the cache
2022-12-28 15:31:56 -05:00
Deluan
dc16ccdb93
Make tests compatible with GoLang 1.18
2022-12-28 15:31:56 -05:00
Deluan
b6eb60f019
Add new Artwork Cache Warmer
2022-12-28 15:31:56 -05:00
Deluan
8c1cd9c273
Refactor file type functions
2022-12-28 15:31:56 -05:00
Deluan
9ec349dce0
Make sure album is updated if external cover changes
2022-12-28 15:31:56 -05:00
Deluan
73bb0104f0
Cache original images
2022-12-28 15:31:56 -05:00
Deluan
28e7371d93
Moved logic of collapsing songs into albums to model package
...
(it should really be called domain.... maybe will rename it later)
2022-12-28 15:31:56 -05:00
Deluan
e03ccb3166
Replace MinInt/MaxInt with generic versions
2022-12-28 15:31:56 -05:00
Deluan
5943e8f953
Rename log.LevelCritical to log.LevelFatal
2022-12-21 14:53:36 -05:00
Deluan Quintão
24d520882e
Don't cache transcoded files if the request was cancelled ( #2041 )
...
* Don't cache transcoded files if the request was cancelled (or there was a transcoding error)
* Add context to logs
* Simplify Wait error handling
* Fix flaky test
* Change log level for "populating cache" error message
* Small cleanups
2022-12-18 12:22:12 -05:00
Deluan
f206d81afd
Some cleanup, fixes typos and grammar errors
2022-12-06 20:09:03 -05:00
Deluan
950b5dc1ce
Remove math/rand
and only use crypto/rand
2022-11-27 21:53:13 -05:00
Deluan
7bafbce816
Reduce number of goroutines in test, to avoid hitting the hard limit of 8128
2022-11-26 15:28:30 -05:00
Deluan
a69a31a3bf
Use custom atomic.Bool, as it is not supported in Go 1.18
2022-11-26 15:14:19 -05:00
Deluan
f82df70302
Add nilerr linter
2022-09-30 20:18:14 -04:00
Deluan
a7a0e23956
Fix formatting
2022-09-26 21:28:10 -04:00
Deluan
d613b19306
Simplify Singleton usage by leveraging Go 1.18's generics
2022-07-27 12:15:05 -04:00
Deluan
31882abf6f
Upgrade Ginkgo to V2
2022-07-26 16:53:17 -04:00
Deluan
f4bffb1676
Update @djherbis's packages
2022-07-26 15:16:56 -04:00
Deluan
35bec14d4d
Add missing test case for #1778
2022-07-25 23:34:09 -04:00
Deluan
321b3c5a64
Fix fscache key mapping. Closes #1778
2022-07-25 23:01:19 -04:00
Deluan
6a87fc88f7
Ignores invalid timestamps in requests (use current time)
...
Fix this issue: https://www.reddit.com/r/navidrome/comments/ql3imf/scrobbling_fails_when_using_substreamer/
2021-11-02 10:33:40 -04:00
Deluan
66a9cbb7d9
Remove temp folders after tests
2021-10-28 10:40:31 -04:00
Deluan
f645c4769c
Fix double escaped lyrics and comments
2021-10-26 19:33:21 -04:00
Deluan
76fdcd112b
Tweak SimilarSongs algorithm to prioritize the requested main artist
2021-10-24 18:04:40 -04:00
Deluan
1a96e9fe65
Import smart playlists (extension .nsp)
2021-10-23 20:25:28 -04:00
Deluan
dbde0ffa0c
Bump github.com/djherbis/atime to v1.1.0
2021-10-03 22:50:25 -04:00
Deluan
4fcb238295
Fix "too many SQL variables" error in GetStarred
endpoint
2021-07-21 10:45:52 -04:00
Deluan
eeb14f0243
Removed unused function
2021-07-20 20:50:59 -04:00
Deluan
8afa2cd833
Remove dependency of deprecated ioutil
package
2021-07-20 20:12:28 -04:00
Deluan
774ad65155
Use fs.FS in MergeFS implementation
2021-07-20 19:54:44 -04:00
Deluan
7cd3a8ba67
Add genre tables, read multiple-genres from tags
2021-07-20 17:45:08 -04:00
Deluan
b0fc684cb6
Fix small lint errors found by gocritic
2021-07-15 13:43:03 -04:00