Philipp Wolfer
9da013f339
Submit duration to ListenBrainz ( #2405 )
2023-06-17 12:27:00 -04:00
Philipp Wolfer
c8608956be
Fix listenbrainz submission and clarify MusicBrainz recording ID field ( #2279 )
...
* Fix MB recording ID parameter name for ListenBrainz submission
This follows the ListenBrainz API documentation.
Fixes #1657
* Rename MediaFile.MbzTrackID to MbzRecordingID
This better reflects the actual data. That the MusicBrainz
recording ID is stored in file metadata as musicbrainz_trackid
is a historical artifact.
* Rename database column mbz_track_id to mbz_recording_id
2023-06-16 18:00:01 -04:00
tomleb
257ccc5f43
Allow configuring cache folder ( #2357 )
...
* Set all clients to dev_download for make get-music
* Use multiple TranscodingCache instances in tests
This fixes flaky tests. The issue is that the TranscodingCache object
was being reused in tests from media_stream_Internal_test.go and
media_stream_test.go. If tests from the former was run first, the cache
would be filled up, so that when running tests from the latter, the `NON
seekable` test would fail.
* Allow configuring cache folder
This commit introduces a new configuration option to configure the cache
folder. This allows the cache to be in a separate folder such as
/var/cache/navidrome on Linux distributions.
* Fix tests
* Removed unused test setup code
---------
Co-authored-by: Deluan <deluan@deluan.com>
Co-authored-by: Deluan <deluan@navidrome.org>
2023-06-02 17:14:11 -04:00
Deluan
cec5fb0d6c
Fix lint errors
2023-06-02 16:44:12 -04:00
Deluan
6bee4ed147
Sanitize filenames inside zip files. Fixes #1763
2023-05-16 18:34:15 -04:00
Deluan
6a8d2dc87d
Only use valid images for artist.* artwork
2023-04-03 18:07:15 -04:00
Joakim Repomaa
2ccc5bc941
Implement artist art priority ( #2266 )
...
* implement artist art priority
* add tests
2023-03-30 18:28:05 -04:00
Deluan
91785ecf36
Add tests for core.Archiver
2023-03-26 19:34:12 -04:00
Deluan
183b462fed
Fix zip comments in Share downloads.
2023-03-21 10:34:04 -04:00
Deluan
16fc4eb792
Fix missing extensions in Share downloads.
...
See https://github.com/navidrome/navidrome/pull/2246#issuecomment-1476996397
2023-03-21 10:31:00 -04:00
Deluan
b520d8827a
Add download button in the SharePlayer
2023-03-10 23:33:29 -05:00
Deluan
a7d3e6e1f1
Add option to allow share to be downloaded
2023-03-10 23:33:29 -05:00
Deluan
a22eef39f7
Add share download endpoint
2023-03-10 23:33:29 -05:00
Deluan
727632b616
Refactor play tracking
2023-02-11 18:52:28 -05:00
Deluan
806713719f
Add lastUpdated to coverArt
ids. Helps with invalidating art cache client-side.
2023-02-08 20:03:31 -05:00
Deluan
a3b8682d44
Fix polling of buffered scrobbles
2023-02-07 19:18:26 -05:00
Deluan
759ff844e2
Make ffmpeg path configurable, also finds it automatically in current folder. Fixes #1932
2023-02-07 13:46:09 -05:00
Deluan
05c6cdea1a
Don't cancel transcoding session if context is canceled
2023-02-07 09:58:50 -05:00
Deluan
ee8f6447eb
Add option to disable Cache Warmer. Related to #2142
2023-02-06 10:41:33 -05:00
Deluan
3ce3185118
Don't retrieve Various Artists and Unknown Artist info from Last.fm
2023-02-04 21:18:51 -05:00
Deluan
ee6b10db72
Replace custom code with errgroup
2023-02-04 12:37:47 -05:00
Deluan
797cc87141
Enqueue external metadata refreshes
2023-02-04 12:37:47 -05:00
Deluan
c031167bb1
Don't retrieve all artist external metadata if we just want artist images
2023-02-03 11:06:53 -05:00
Deluan
4a25e6d3d8
Fix Mapped Similar Artists log
2023-02-03 09:57:29 -05:00
Deluan
ad2ad514b3
Add dev option to increase external metadata cache expiration. More logs
2023-02-02 16:55:12 -05:00
Deluan
9b81aa4403
Fix artwork resolution when paths contains :
. Fix #2137
2023-02-02 12:18:55 -05:00
Deluan
cf04db7a98
Don't try to connect to external services if artist is Unknown
2023-02-02 10:57:37 -05:00
Deluan
f4b50c493c
When retrieving images from external sources, avoid calling it again if data is already cached locally.
...
Relates to https://github.com/navidrome/navidrome/issues/2130#issuecomment-1412742918
2023-02-02 10:38:17 -05:00
Deluan
4a7e86e989
Fix file descriptor leaking.
2023-02-02 10:36:49 -05:00
Deluan
f00e6117ff
Invalidate artist cache (by changing cache key format)
2023-02-01 10:34:55 -05:00
Deluan
d8e794317f
Return 404 when artwork is not available in /share/img
endpoint
2023-02-01 10:34:02 -05:00
Deluan
712d8f9fcc
Add trace logs to calls to external services
2023-01-31 09:37:09 -05:00
Deluan
a651d65a5b
Add a comment to the generated zip
2023-01-29 17:08:18 -05:00
Deluan
dc56c52557
Refactor zip archiver.
...
Add `disc` to path when downloading albums. Fix #2121
2023-01-29 15:25:20 -05:00
Aleksey Lobanov
457e1fc97b
Base SQL metrics in MetricsWorker ( #2002 )
...
* feat: Add metrics worker
* refactor: Add todos for useful for metrics methods
* feat: Run MetricsWorker is Prometheus is Enabled
* refactor: Unused low-level variable was removed in metrics
* feat: No worker for metrics, add more
* refactor: Unnecessary todo removed
* refactor: Remove dead unused constant
* Reduce metrics public interface
Co-authored-by: Deluan <deluan@navidrome.org>
2023-01-24 19:26:07 -05:00
Deluan
433da37982
Add Share to Context menus, also share artist
2023-01-24 18:36:47 -05:00
Deluan
6c05fcb699
Create contents label for group of shared mediafiles
2023-01-24 18:36:47 -05:00
Deluan
d639da9eb5
Enable sharing only selected songs with the Subsonic API
2023-01-24 18:36:47 -05:00
Deluan
e34f26588e
Fix empty entry
collection in Shares
2023-01-24 18:36:47 -05:00
Deluan
d5df102f9f
Implement updateShare
and deleteShare
Subsonic endpoints
2023-01-24 18:36:46 -05:00
Deluan
d4c1d2ece4
Handle expired shares
2023-01-24 18:36:46 -05:00
Deluan
d0dceae094
Add getShares
and createShare
Subsonic endpoints
2023-01-24 18:36:46 -05:00
Deluan
94cc2b2ac5
Fix tests and lint errors, plus a bit of refactor
2023-01-24 18:36:46 -05:00
Deluan
58fc271864
Share playlists
2023-01-24 18:36:46 -05:00
Deluan
d9c42b3183
Add share's contents
and description
to the DB
2023-01-24 18:36:46 -05:00
Deluan
84aa094e56
More work on Shares
2023-01-24 18:36:45 -05:00
Deluan
ab04e33da6
Initial work on Shares
2023-01-24 18:36:45 -05:00
Deluan
7073d18b54
Make private methods unpublished
2023-01-19 09:34:39 -05:00
Deluan
7fc964aec5
Don't wake CacheWarmer every 10 seconds, let it sleep :)
2023-01-18 19:31:15 -05:00
Deluan
127c75e34b
Don't try to downsample if requested bitrate is equal or greater than original. Fix #2066
2023-01-18 13:20:51 -05:00