Files
SpotiFLAC-Mobile/test/fixtures
zarzet 0422895708 feat(import): read track links from a CSV and match rows more strictly
Issue 944: a CSV with a URL column imported nothing, because the importer only knew title, artist, ISRC and a few fixed id columns.

A column named URL, Link, Track URL or Track Link is now read, in the Rust parser and the Dart one. Each link goes to the extension that handles it, the way a pasted link does, so the song comes back with its own id, source and cover. A link to an album or a playlist adds all its songs, in the file's order. A row whose link no extension handles falls back to its ISRC, then to its title and artist. A bare track id from the fixed legacy id columns is tried as its link form first.

Matched rows now carry the provider's id and source, and its comment, preview and quality fields, so they download like songs added from search. Text matching is stricter: the title must agree, and the artist when the row has one; a partial match counts only as whole words of four letters or more, never for filler like "track" or "song". Rows that used to match loosely keep their own text instead.

For a link to one song or one album, the cover comes from the first metadata provider in the listener's priority order that has the exact ISRC, when that is another provider than the link's. A playlist keeps its own covers, since it would cost one search per song.

An empty or unreadable file now shows a message instead of nothing. The retry loop for links moved out of the track provider into a shared resolver that both use.
2026-11-21 15:08:09 +07:00
..