Unofficial YouTube Music / Spotify Premium client for Android, built in Liquid Glass. Audio effects, Spotify Connect, listening history, 8 languages. Rust core on librespot.
Kotlin alternativeandroidandroid-applicationclientglassmorphisminnertubelibrespotliquid-glassspotifyspotify-connectspotifyapiyoutube-musicyoutube-playerytdlnis
Covers and lyrics can be asked for again
Lelonio497279b55ac0
diff --git a/app/src/main/java/dev/lelonio/square/download/DownloadExtras.kt b/app/src/main/java/dev/lelonio/square/download/DownloadExtras.ktindex 0bdaf26..320f67a 100644--- a/app/src/main/java/dev/lelonio/square/download/DownloadExtras.kt+++ b/app/src/main/java/dev/lelonio/square/download/DownloadExtras.kt@@ -489,6 +489,19 @@ object DownloadExtras {}}+ /**+ * The extras go; the music stays.+ *+ * For the listener who has covers or words missing on songs already on the+ * phone — a track kept by a build that had none, or a lookup that failed+ * the day it was fetched. The audio is untouched, and the queue fills the+ * extras back in the next time it runs; see DownloadQueue.backfillExtras.+ */+ fun forgetAll() {+ forgetArtAnswers()+ root?.let { runCatching { it.deleteRecursively() } }+ }+/** Everything goes, when the downloads do. */fun clear() {forgetArtAnswers()diff --git a/app/src/main/java/dev/lelonio/square/download/DownloadQueue.kt b/app/src/main/java/dev/lelonio/square/download/DownloadQueue.ktindex 2dca3b5..d0a9f81 100644--- a/app/src/main/java/dev/lelonio/square/download/DownloadQueue.kt+++ b/app/src/main/java/dev/lelonio/square/download/DownloadQueue.kt@@ -257,6 +257,18 @@ class DownloadQueue(/** Tracks whose extras were attempted this run, successfully or not. */private val extrasTried = mutableSetOf<String>()+ /**+ * Asks for every downloaded song's extras again.+ *+ * The answers already filed are what stop a track being asked about twice,+ * so forgetting them is the whole of it: the next run finds every song+ * missing its extras and fills them in. See DownloadExtras.forgetAll.+ */+ fun refetchExtras() {+ extrasTried.clear()+ DownloadExtras.forgetAll()+ }+private val coversTried = mutableSetOf<String>()/**