mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
Every default download keeps an https cover address and also embeds its cover, so round 1 copied the web cover of every download and the catalog's coverPath then outranked the picture in the file. The owner approved web covers only for songs with no other cover. The exporter now reports each song without a local cover file but with a public https cover (path, path+mtime+size stamp, address) and names a copy only for a song whose file is known to embed no picture. The store asks linkEmbeddedPictures about new file versions in batches of 64 on the Rust worker pool, keeps the answers in pictures.json, keeps the copies a song may still want, fetches only for songs known to embed none, and announces a held copy a newly asked file can take. Also from the review: the host stops the store only after the server stopped, so an export finishing meanwhile fetches nothing; web cover fetches take https only, refuse localhost and loopback, link-local and private literals, check every redirect by hand and end after a minute; once the store is full it fetches and retries nothing until a prune frees space; a failed write removes its staged file. Phone covers keep their fetch unchanged.