feat(qt): mark tracks Qobuz pulled, and keep them out of the queue

Qobuz withdraws tracks: sometimes a recording, sometimes only a quality tier,
sometimes it republishes the same recording under a new album id. The row keeps
appearing and simply cannot play. Until now the user found out by clicking it.

The app already knew and threw the answer away: eight builders hardcoded
`streamable: true`, so the API's own flag never reached a row model. The
reactive half was already here and stays -- a terminal failure still toasts and
skips, bounded at five consecutive, with the 403 back-off kept separate so a
403 storm cannot burn five good tracks.

Detection has two clauses. The API's `streamable: false`, and a session-only
memory of tracks that died terminally under the player this run: /album/get is
honest, but plenty of rows only fail at the stream-url step, and that memory is
what stops the queue re-offering them. Session-only on purpose -- the reference
kept the equivalent set in localStorage, never expired it and never revalidated
it, so a track Qobuz restored stayed dead forever.

Dead rows are dimmed, get an alert glyph and a tooltip, lose click, drag,
favourite and download, and STAY visible and right-clickable: hiding them would
defeat the point and remove the only route to a replacement. Qobuz's own player
does exactly this, and the pulled track carries displayable:false while still
being rendered -- that flag is not a hide instruction.

A downloaded copy is exempt everywhere. The offline tier resolves before any
availability question, so a pulled track already on disk plays fine; dropping it
from the queue would take away something the user downloaded, and it would bite
hardest offline. Those rows say they are playing the local copy and keep their
play affordance.

Two seams filter, not one, and both had to learn the surviving anchor: every
caller read `first_id` from the UNFILTERED list, so the seam dropped that row
and the app then asked the player for the id it had just discarded -- silence,
no toast. That was already reachable today through the artist blacklist. The
seams now return the surviving start and its id.

Two id bugs surfaced on the way and are fixed here. A playlist row's
`playlist_track_id` was filled with the CATALOG id; they are different numbers
for the same row, one naming the recording and the other its slot in that
playlist, and Qobuz's delete and reposition verbs both take the membership id --
so "remove from playlist" was addressing a row that does not exist. And the For
You rows were built with `..default()`, claiming availability while the queue
built from the same track read the truth.

Catalogs: the two strings this needed already existed in all seven translated
locales and are reused; the skipped-tracks toast is a plural pair, and the
replacement feature's strings ride along here since they share the files.

cc
This commit is contained in:
vicrodh committed 2026-08-17 14:41:26 -06:00
1 parent 8e52157299
commit 7780efa5db
25 files changed
+1666 -161

No files matched your search

@@ -5195,3 +5195,62 @@ msgstr "Wähle einen Künstler aus, um seine Alben zu sehen"
msgid "{} / {} artists"
msgstr "{} / {} Künstler"
# --- Unavailable tracks + replacement search (Qt port, contract 2026-08-17
# §8-6). "Unavailable" and "This track is no longer available" already
# exist in this file and are REUSED by the render and the reactive skip toast
# — nothing below twins them.
#
# The skipped-tracks toast is a plural PAIR, per the convention already set by
# "Scan complete ({} file skipped)" and "{} duplicate skipped": the queue build
# drops N rows at once, and a singular-only string reads wrong in every locale
# with plural rules. Russian carries all three forms.
#
# "No longer on Qobuz — playing your downloaded copy" is the cached-but-pulled
# state (contract §5.3/F5): the track left the catalogue but the user owns a
# downloaded copy, so it still plays. It cannot fold into "This track is no
# longer available" — that sentence would be a lie on a row playing right now.
#
# Em dash is U+2014 with spaces on both sides, as everywhere else in this file.
# "Titel" is invariant in the plural, so both forms are identical (same as
# "Caching {} track offline…").
msgid "Find available version"
msgstr "Verfügbare Version suchen"
msgid "Replace unavailable track"
msgstr "Nicht verfügbaren Titel ersetzen"
msgid "No available version found"
msgstr "Keine verfügbare Version gefunden"
msgid "Track replaced"
msgstr "Titel ersetzt"
msgid "Could not replace the track"
msgstr "Titel konnte nicht ersetzt werden"
msgid "The replacement was added at the end of the playlist"
msgstr "Der Ersatz wurde am Ende der Playlist hinzugefügt"
msgid "{} track skipped — no longer available"
msgid_plural "{} tracks skipped — no longer available"
msgstr[0] "{} Titel übersprungen — nicht mehr verfügbar"
msgstr[1] "{} Titel übersprungen — nicht mehr verfügbar"
msgid "No longer on Qobuz — playing your downloaded copy"
msgstr "Nicht mehr bei Qobuz — deine heruntergeladene Kopie wird abgespielt"
msgid "Exact match"
msgstr "Exakte Übereinstimmung"
msgid "Low confidence"
msgstr "Geringe Sicherheit"
msgid "Replace"
msgstr "Ersetzen"
msgid "Replacing..."
msgstr "Wird ersetzt …"
msgid "The replacement takes the unavailable track's place in the playlist."
msgstr "Der Ersatz nimmt den Platz des nicht verfügbaren Titels in der Playlist ein."
@@ -808,3 +808,62 @@ msgstr "Tunnel Flow"
# --- Purchases (Slice 13, Qt port) ---
msgid "Download goodies"
msgstr "Download goodies"
# --- Unavailable tracks + replacement search (Qt port, contract 2026-08-17
# §8-6). "Unavailable" and "This track is no longer available" already
# exist in this file and are REUSED by the render and the reactive skip toast
# — nothing below twins them.
#
# The skipped-tracks toast is a plural PAIR, per the convention already set by
# "Scan complete ({} file skipped)" and "{} duplicate skipped": the queue build
# drops N rows at once, and a singular-only string reads wrong in every locale
# with plural rules. Russian carries all three forms.
#
# "No longer on Qobuz — playing your downloaded copy" is the cached-but-pulled
# state (contract §5.3/F5): the track left the catalogue but the user owns a
# downloaded copy, so it still plays. It cannot fold into "This track is no
# longer available" — that sentence would be a lie on a row playing right now.
#
# Em dash is U+2014 with spaces on both sides, as everywhere else in this file.
# en is the source-language stub: msgstr == msgid, as every batch that
# introduced a genuinely new msgid here has done.
msgid "Find available version"
msgstr "Find available version"
msgid "Replace unavailable track"
msgstr "Replace unavailable track"
msgid "No available version found"
msgstr "No available version found"
msgid "Track replaced"
msgstr "Track replaced"
msgid "Could not replace the track"
msgstr "Could not replace the track"
msgid "The replacement was added at the end of the playlist"
msgstr "The replacement was added at the end of the playlist"
msgid "{} track skipped — no longer available"
msgid_plural "{} tracks skipped — no longer available"
msgstr[0] "{} track skipped — no longer available"
msgstr[1] "{} tracks skipped — no longer available"
msgid "No longer on Qobuz — playing your downloaded copy"
msgstr "No longer on Qobuz — playing your downloaded copy"
msgid "Exact match"
msgstr "Exact match"
msgid "Low confidence"
msgstr "Low confidence"
msgid "Replace"
msgstr "Replace"
msgid "Replacing..."
msgstr "Replacing..."
msgid "The replacement takes the unavailable track's place in the playlist."
msgstr "The replacement takes the unavailable track's place in the playlist."
@@ -5203,3 +5203,60 @@ msgstr "Selecciona un artista para ver sus álbumes"
msgid "{} / {} artists"
msgstr "{} / {} artistas"
# --- Unavailable tracks + replacement search (Qt port, contract 2026-08-17
# §8-6). "Unavailable" and "This track is no longer available" already
# exist in this file and are REUSED by the render and the reactive skip toast
# — nothing below twins them.
#
# The skipped-tracks toast is a plural PAIR, per the convention already set by
# "Scan complete ({} file skipped)" and "{} duplicate skipped": the queue build
# drops N rows at once, and a singular-only string reads wrong in every locale
# with plural rules. Russian carries all three forms.
#
# "No longer on Qobuz — playing your downloaded copy" is the cached-but-pulled
# state (contract §5.3/F5): the track left the catalogue but the user owns a
# downloaded copy, so it still plays. It cannot fold into "This track is no
# longer available" — that sentence would be a lie on a row playing right now.
#
# Em dash is U+2014 with spaces on both sides, as everywhere else in this file.
msgid "Find available version"
msgstr "Buscar versión disponible"
msgid "Replace unavailable track"
msgstr "Reemplazar pista no disponible"
msgid "No available version found"
msgstr "No se encontró ninguna versión disponible"
msgid "Track replaced"
msgstr "Pista reemplazada"
msgid "Could not replace the track"
msgstr "No se pudo reemplazar la pista"
msgid "The replacement was added at the end of the playlist"
msgstr "El reemplazo se agregó al final de la lista de reproducción"
msgid "{} track skipped — no longer available"
msgid_plural "{} tracks skipped — no longer available"
msgstr[0] "Se omitió {} pista — ya no está disponible"
msgstr[1] "Se omitieron {} pistas — ya no están disponibles"
msgid "No longer on Qobuz — playing your downloaded copy"
msgstr "Ya no está en Qobuz — reproduciendo tu copia descargada"
msgid "Exact match"
msgstr "Coincidencia exacta"
msgid "Low confidence"
msgstr "Coincidencia dudosa"
msgid "Replace"
msgstr "Reemplazar"
msgid "Replacing..."
msgstr "Reemplazando..."
msgid "The replacement takes the unavailable track's place in the playlist."
msgstr "El reemplazo ocupa el lugar de la pista no disponible en la lista."
@@ -5195,3 +5195,60 @@ msgstr "Sélectionnez un artiste pour voir ses albums"
msgid "{} / {} artists"
msgstr "{} / {} artistes"
# --- Unavailable tracks + replacement search (Qt port, contract 2026-08-17
# §8-6). "Unavailable" and "This track is no longer available" already
# exist in this file and are REUSED by the render and the reactive skip toast
# — nothing below twins them.
#
# The skipped-tracks toast is a plural PAIR, per the convention already set by
# "Scan complete ({} file skipped)" and "{} duplicate skipped": the queue build
# drops N rows at once, and a singular-only string reads wrong in every locale
# with plural rules. Russian carries all three forms.
#
# "No longer on Qobuz — playing your downloaded copy" is the cached-but-pulled
# state (contract §5.3/F5): the track left the catalogue but the user owns a
# downloaded copy, so it still plays. It cannot fold into "This track is no
# longer available" — that sentence would be a lie on a row playing right now.
#
# Em dash is U+2014 with spaces on both sides, as everywhere else in this file.
msgid "Find available version"
msgstr "Trouver une version disponible"
msgid "Replace unavailable track"
msgstr "Remplacer le titre indisponible"
msgid "No available version found"
msgstr "Aucune version disponible trouvée"
msgid "Track replaced"
msgstr "Titre remplacé"
msgid "Could not replace the track"
msgstr "Échec du remplacement du titre"
msgid "The replacement was added at the end of the playlist"
msgstr "Le remplacement a été ajouté à la fin de la playlist"
msgid "{} track skipped — no longer available"
msgid_plural "{} tracks skipped — no longer available"
msgstr[0] "{} titre ignoré — plus disponible"
msgstr[1] "{} titres ignorés — plus disponibles"
msgid "No longer on Qobuz — playing your downloaded copy"
msgstr "Plus disponible sur Qobuz — lecture de votre copie téléchargée"
msgid "Exact match"
msgstr "Correspondance exacte"
msgid "Low confidence"
msgstr "Faible confiance"
msgid "Replace"
msgstr "Remplacer"
msgid "Replacing..."
msgstr "Remplacement…"
msgid "The replacement takes the unavailable track's place in the playlist."
msgstr "Le remplacement prend la place du titre indisponible dans la playlist."
@@ -5180,3 +5180,60 @@ msgstr "アーティストを選択してアルバムを表示します"
msgid "{} / {} artists"
msgstr "{} / {} 組のアーティスト"
# --- Unavailable tracks + replacement search (Qt port, contract 2026-08-17
# §8-6). "Unavailable" and "This track is no longer available" already
# exist in this file and are REUSED by the render and the reactive skip toast
# — nothing below twins them.
#
# The skipped-tracks toast is a plural PAIR, per the convention already set by
# "Scan complete ({} file skipped)" and "{} duplicate skipped": the queue build
# drops N rows at once, and a singular-only string reads wrong in every locale
# with plural rules. Russian carries all three forms.
#
# "No longer on Qobuz — playing your downloaded copy" is the cached-but-pulled
# state (contract §5.3/F5): the track left the catalogue but the user owns a
# downloaded copy, so it still plays. It cannot fold into "This track is no
# longer available" — that sentence would be a lie on a row playing right now.
#
# Em dash is U+2014 with spaces on both sides, as everywhere else in this file.
# nplurals=1 — one form, like every other plural entry in this file.
msgid "Find available version"
msgstr "利用可能なバージョンを探す"
msgid "Replace unavailable track"
msgstr "利用できないトラックを置き換え"
msgid "No available version found"
msgstr "利用可能なバージョンが見つかりませんでした"
msgid "Track replaced"
msgstr "トラックを置き換えました"
msgid "Could not replace the track"
msgstr "トラックの置き換えに失敗しました"
msgid "The replacement was added at the end of the playlist"
msgstr "代わりのトラックはプレイリストの最後に追加されました"
msgid "{} track skipped — no longer available"
msgid_plural "{} tracks skipped — no longer available"
msgstr[0] "{}トラックをスキップしました — 利用できなくなりました"
msgid "No longer on Qobuz — playing your downloaded copy"
msgstr "Qobuz にはもうありません — ダウンロード済みのコピーを再生します"
msgid "Exact match"
msgstr "完全一致"
msgid "Low confidence"
msgstr "確度が低い"
msgid "Replace"
msgstr "置き換える"
msgid "Replacing..."
msgstr "置き換え中…"
msgid "The replacement takes the unavailable track's place in the playlist."
msgstr "置き換えた曲は、再生できない曲の位置に入ります。"
@@ -5185,3 +5185,60 @@ msgstr "Selecteer een artiest om diens albums te zien"
msgid "{} / {} artists"
msgstr "{} / {} artiesten"
# --- Unavailable tracks + replacement search (Qt port, contract 2026-08-17
# §8-6). "Unavailable" and "This track is no longer available" already
# exist in this file and are REUSED by the render and the reactive skip toast
# — nothing below twins them.
#
# The skipped-tracks toast is a plural PAIR, per the convention already set by
# "Scan complete ({} file skipped)" and "{} duplicate skipped": the queue build
# drops N rows at once, and a singular-only string reads wrong in every locale
# with plural rules. Russian carries all three forms.
#
# "No longer on Qobuz — playing your downloaded copy" is the cached-but-pulled
# state (contract §5.3/F5): the track left the catalogue but the user owns a
# downloaded copy, so it still plays. It cannot fold into "This track is no
# longer available" — that sentence would be a lie on a row playing right now.
#
# Em dash is U+2014 with spaces on both sides, as everywhere else in this file.
msgid "Find available version"
msgstr "Beschikbare versie zoeken"
msgid "Replace unavailable track"
msgstr "Niet-beschikbaar nummer vervangen"
msgid "No available version found"
msgstr "Geen beschikbare versie gevonden"
msgid "Track replaced"
msgstr "Nummer vervangen"
msgid "Could not replace the track"
msgstr "Vervangen van nummer mislukt"
msgid "The replacement was added at the end of the playlist"
msgstr "De vervanging is aan het einde van de afspeellijst toegevoegd"
msgid "{} track skipped — no longer available"
msgid_plural "{} tracks skipped — no longer available"
msgstr[0] "{} nummer overgeslagen — niet meer beschikbaar"
msgstr[1] "{} nummers overgeslagen — niet meer beschikbaar"
msgid "No longer on Qobuz — playing your downloaded copy"
msgstr "Niet meer op Qobuz — je gedownloade kopie wordt afgespeeld"
msgid "Exact match"
msgstr "Exacte overeenkomst"
msgid "Low confidence"
msgstr "Lage zekerheid"
msgid "Replace"
msgstr "Vervangen"
msgid "Replacing..."
msgstr "Vervangen…"
msgid "The replacement takes the unavailable track's place in the playlist."
msgstr "De vervanging neemt de plaats van het niet-beschikbare nummer in de afspeellijst in."
@@ -5195,3 +5195,60 @@ msgstr "Selecione um artista para ver os seus álbuns"
msgid "{} / {} artists"
msgstr "{} / {} artistas"
# --- Unavailable tracks + replacement search (Qt port, contract 2026-08-17
# §8-6). "Unavailable" and "This track is no longer available" already
# exist in this file and are REUSED by the render and the reactive skip toast
# — nothing below twins them.
#
# The skipped-tracks toast is a plural PAIR, per the convention already set by
# "Scan complete ({} file skipped)" and "{} duplicate skipped": the queue build
# drops N rows at once, and a singular-only string reads wrong in every locale
# with plural rules. Russian carries all three forms.
#
# "No longer on Qobuz — playing your downloaded copy" is the cached-but-pulled
# state (contract §5.3/F5): the track left the catalogue but the user owns a
# downloaded copy, so it still plays. It cannot fold into "This track is no
# longer available" — that sentence would be a lie on a row playing right now.
#
# Em dash is U+2014 with spaces on both sides, as everywhere else in this file.
msgid "Find available version"
msgstr "Procurar versão disponível"
msgid "Replace unavailable track"
msgstr "Substituir faixa indisponível"
msgid "No available version found"
msgstr "Não foi encontrada nenhuma versão disponível"
msgid "Track replaced"
msgstr "Faixa substituída"
msgid "Could not replace the track"
msgstr "Falha ao substituir a faixa"
msgid "The replacement was added at the end of the playlist"
msgstr "A substituição foi adicionada ao fim da playlist"
msgid "{} track skipped — no longer available"
msgid_plural "{} tracks skipped — no longer available"
msgstr[0] "{} faixa ignorada — já não está disponível"
msgstr[1] "{} faixas ignoradas — já não estão disponíveis"
msgid "No longer on Qobuz — playing your downloaded copy"
msgstr "Já não está no Qobuz — a reproduzir a sua cópia transferida"
msgid "Exact match"
msgstr "Correspondência exata"
msgid "Low confidence"
msgstr "Baixa confiança"
msgid "Replace"
msgstr "Substituir"
msgid "Replacing..."
msgstr "Substituindo..."
msgid "The replacement takes the unavailable track's place in the playlist."
msgstr "A substituição ocupa o lugar da faixa indisponível na playlist."
@@ -5212,3 +5212,62 @@ msgstr "Выберите исполнителя, чтобы увидеть ег
msgid "{} / {} artists"
msgstr "{} / {} исполнителей"
# --- Unavailable tracks + replacement search (Qt port, contract 2026-08-17
# §8-6). "Unavailable" and "This track is no longer available" already
# exist in this file and are REUSED by the render and the reactive skip toast
# — nothing below twins them.
#
# The skipped-tracks toast is a plural PAIR, per the convention already set by
# "Scan complete ({} file skipped)" and "{} duplicate skipped": the queue build
# drops N rows at once, and a singular-only string reads wrong in every locale
# with plural rules. Russian carries all three forms.
#
# "No longer on Qobuz — playing your downloaded copy" is the cached-but-pulled
# state (contract §5.3/F5): the track left the catalogue but the user owns a
# downloaded copy, so it still plays. It cannot fold into "This track is no
# longer available" — that sentence would be a lie on a row playing right now.
#
# Em dash is U+2014 with spaces on both sides, as everywhere else in this file.
# nplurals=3 — all three forms, like every other plural entry in this file.
msgid "Find available version"
msgstr "Найти доступную версию"
msgid "Replace unavailable track"
msgstr "Заменить недоступный трек"
msgid "No available version found"
msgstr "Доступная версия не найдена"
msgid "Track replaced"
msgstr "Трек заменён"
msgid "Could not replace the track"
msgstr "Не удалось заменить трек"
msgid "The replacement was added at the end of the playlist"
msgstr "Замена добавлена в конец плейлиста"
msgid "{} track skipped — no longer available"
msgid_plural "{} tracks skipped — no longer available"
msgstr[0] "Пропущен {} трек — он больше недоступен"
msgstr[1] "Пропущено {} трека — они больше недоступны"
msgstr[2] "Пропущено {} треков — они больше недоступны"
msgid "No longer on Qobuz — playing your downloaded copy"
msgstr "Больше нет в Qobuz — воспроизводится скачанная копия"
msgid "Exact match"
msgstr "Точное совпадение"
msgid "Low confidence"
msgstr "Низкая точность"
msgid "Replace"
msgstr "Заменить"
msgid "Replacing..."
msgstr "Замена…"
msgid "The replacement takes the unavailable track's place in the playlist."
msgstr "Замена займёт место недоступного трека в плейлисте."