forked from Furumi/furumi-web
Search peer artist catalogues for unmatched import entries
With the user's consent and federation enabled, entries that the local
library and known federated tracks do not match wait for resolver stage 3.
It looks up each artist group by its original name, its spelling without
Latin diacritics and, if those find nothing, its collaboration parts, and
decides the entries against the federated tracks of the catalogues.
The new artist_catalogs_bounded in the federation client asks at most 16
owners, a given number at a time, in a JoinSet owned by one task; dropping
the stream aborts the search and every catalogue request. The player's
stream_artist_catalogs keeps its behaviour and shares the owner parsing.
Imports search two groups at a time process-wide, give a group 60 s, retry
failed searches after 2/4/8 s, stop after 500 groups or 30 minutes per pass
and cancel running lookups on cancellation or lease loss. Lost catalogues
are counted in the statistics.
POST /api/imports/{id}/items/{item_id}/match takes a stored candidate of
an ambiguous entry for its owner after checking it again, and queues a
finished import so that the choice is published.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0a258a3e05
commit
f10e384650
11 files changed
+2378
-71
No files matched your search
@@ -134,6 +134,22 @@ federation content id even when federation is disabled, which requires
|
||||
**Settings → Agent → Storage directory** (`FURU_AGENT_STORAGE_DIR`); without it
|
||||
they wait as "no content id" and later passes try again.
|
||||
|
||||
When the user allows federated search and federation is enabled, entries still
|
||||
without a match are looked up in the artist catalogues of peers. Only artist
|
||||
names are sent: the server searches the network for each artist once, asks at
|
||||
most 16 peers that offer it for their catalogues, four at a time, and spends at
|
||||
most a minute per artist. Imports of the whole server search two artists at a
|
||||
time, and one pass searches at most 500 artists for at most 30 minutes; the rest
|
||||
stays unmatched until **Retry unmatched**. A failed search is repeated after 2, 4
|
||||
and 8 seconds before the artist is skipped. Catalogues that a peer refuses, that
|
||||
exceed 4 MiB or that do not arrive in 8 seconds are counted as lost in the import
|
||||
statistics. Cancelling an import stops its running searches. Without consent, or
|
||||
with federation disabled, the import makes no network requests.
|
||||
|
||||
Doubtful entries keep up to five candidates. The import page lets the owner pick
|
||||
one; the choice is checked against the stored candidates and published like an
|
||||
automatic match.
|
||||
|
||||
## Federation
|
||||
|
||||
Federation is optional. Independent Furumusic and Furumi players that use the
|
||||
|
||||
Reference in new issue
Block a user