mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 15:02:21 +02:00
The track metadata screen's _performConversion re-implemented the batch conversion pipeline step by step (metadata merge, lyrics, cover temp file, SAF temp copy, FFmpeg, SAF publish, history or library update, temp cleanup). Both now call convertLibraryTrack in the batch controller, which returns a LibraryTrackConversionResult that each caller maps to its own reporting: batch failure summaries and log lines, or the screen's existing snackbars. Caller differences stay as parameters: the cover temp prefix (batch_cover_ or convert_cover_), whether an empty SAF temp path fails, the history SAF file name fallback, the screen's eager temp deletes, its provider reload right after the row is written, its warnings, its cleanup log text and its lazy artistTagMode read. One deliberate difference: the screen now reads the track path, item and audio fields once before the first await instead of re-reading widget state after each await. Swiping to another track mid-conversion previously published and recorded the output against the newly shown track; it now stays on the original.