Bar media widget shows grey placeholder instead of cover art when consecutive tracks share the same art URL
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- desktop
Línea de trabajo
Start in quickshell/Services/TrackArtService.qml: read _loadCurrentArtwork, then the first branch of _commit, which returns without _publish when the source URL is unchanged, and artReadyFor, which compares the track key. Quickshell/Modules/DBar/Widgets/Media.qml shows where coverArtUrl comes from. Done when consecutive tracks sharing an art URL keep showing cover art, and the stale-browser-cover case the early return guards against still gets replaced.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Compositor
Hyprland
Distribution
NixOS
If Other, please specify
No response
Select your Installation Method
Distro Packaging
Was this your original Installation method?
Yes
If no, specify
No response
dms doctor -vC
Click to expand
System
● Operating System ····· NixOS 26.11 (Zokor)
● Architecture ········· amd64
● Display Server ······· Wayland
Versions
● DMS CLI ·············· dms 2.2-beta+date=2026-11-25_98a936d
● Quickshell ··········· Quickshell 0.4.73 (revision 1f768a313e9813e505e17d9436403fdcbce02c64, distributed by Nix)
● DMS Shell ············ 2.2-beta+date=2026-11-25_98a936d
Installation
○ Install Type ········· Nix store (flake)
Compositor
● Hyprland ············· 0.57.2
Optional Features
● cava ················· Installed
Description
With cover art and the visualizer enabled on the bar media widget, the cover slot turns into the empty grey placeholder when Spotify moves to a track whose mpris:artUrl is the same as the previous track's, which is the normal case when playing an album. The art stays grey until a track with a different art URL plays, or until the player goes away (restarting Spotify or the shell).
The metadata is fine while this happens: Spotify publishes mpris:trackid, xesam:title, and an https://i.scdn.co/image/... mpris:artUrl, and the downloaded ~/.cache/dms/imagecache/remote_<hash> file is a valid 640×640 JPEG.
Cause
TrackArtService never commits the new track's key when the art source URL is unchanged:
- On the track change,
_loadCurrentArtworkseesurl === _committedSrcUrl && key !== _committedArtKey, setsloading = true, and startsreusedSourceDelay. - When the delay fires,
loadArtworkfinds the cached file and calls_commit(localFileUrl, newKey, sameSrcUrl). - The first branch of
_commitmatches (same resolved URL, same source URL, different key), setsloading = false, and returns without calling_publish, soartwork.keykeeps the previous track's key. artReadyFornow fails because_trackKey(player) !== _committedArtKey, so the bar'scoverArtUrlis empty and the slot is drawn withTheme.chipSurfaceNested.- Later metadata signals for the same track re-enter step 1, but
loadArtworkreturns early onurl === _lastArtUrl && requestSerial === _lastIssuedSerial, so nothing retries.
reusedSourceDelay already waits for a stale browser cover to be replaced, so the early return in _commit seems to reject legitimate shared album art after that wait has passed. Publishing the existing art under the new key in that branch (something like _publish(candidate, artwork.colors)) looks like the fix, though I haven't tested it against the Chrome case the branch may be guarding.
Expected Behavior
Consecutive tracks that share cover art keep showing it.
Steps to Reproduce
- Enable cover art and the visualizer on the bar media widget.
- Play an album in Spotify, so consecutive tracks share the same
mpris:artUrl. - Let it advance to the next track, or skip to it.
- The cover slot turns grey and stays grey for every following track on the album.
Error Messages/Logs
Nothing relevant in the dms journal.
Screenshots/Recordings
No response
- Lenguaje dominante
- QML
- Estrellas
- 8.4k
- Forks
- 549
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AvengeMedia/DankMaterialShell
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AvengeMedia/DankMaterialShell#4490 ·
-
Color Picker has blurAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
AvengeMedia/DankMaterialShell#4481 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
AvengeMedia/DankMaterialShell#4465 ·
-
Hide checkmark icon as wellAbiertoEnhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AvengeMedia/DankMaterialShell#4456 · 2 comentarios ·
-
Some options do not have a gapAbiertoEnhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AvengeMedia/DankMaterialShell#4452 ·
Todos los issues de AvengeMedia/DankMaterialShell
Issues similares
-
Weird behavior of searchAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
SubtitleEdit/subtitleedit#17351 ·
Los mantenedores suelen responder en 1 día
-
os:Windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug :bug:
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Nouuu/Albion-Online-OpenRadar#243 ·