sakithb / media-controls

A media indicator for the Gnome shell.
MIT License
228 stars 33 forks source link

Spotify album artwork not showing correctly #27

Closed lorenzobazzana closed 2 years ago

lorenzobazzana commented 2 years ago

First things first, this extension is a godsend, nice work!

I noticed that the track information menu won't show at all album artwork for Spotify songs if the option "Cache images" is turned off. If said option is turned on, it will show the correct artwork only if it has already been downloaded before, meaning that if a song with a new artwork is playing it won't show the right image unless I click on the play/pause button inside the track info menu (it appears that clicking does a refresh of the image).

Lastly, the media icon for Spotify doesn't seem to be working correctly, it shows a generic gray rectangle with two notes inside instead of the Spotify icon. This seems to be related just to that player, because Firefox shows up right.

sakithb commented 2 years ago

Hello, thanks for reporting the issue. Can you provide your GNOME version, extension version and distribution. Also check if there are any errors in the extensions app. Thanks.

lorenzobazzana commented 2 years ago

I'm using GNOME 40.4 on Fedora 34. The extension version is 17 and the extensions app version is 41.0. There doesn't seem to be any errors in the extension app.

sakithb commented 2 years ago

Hi, sorry for the late reply. Have you tried clearing the cache. I am running on the same exact specs and it works fine. If the issue persists even after clearing the extension and reinstalling, please send me the logs by following the below steps.

lorenzobazzana commented 2 years ago

I tried uninstalling and reinstalling multiple times and nothing changes. I even tried removing the extension folder manually via terminal and downloading the source directly from the repo.

This is what I get when I run journalctl -f -o cat /usr/bin/gnome-shell:

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:269:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:274:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:269:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:274:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:269:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:274:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:269:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:274:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:269:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:274:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:269:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:274:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:269:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:274:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:269:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

JS ERROR: Gio.IOErrorEnum: Errore nell'aprire il file /home/lorenzo/.config/media-controls/cache/aHR0cHM6Ly9pLnNjZG4uY28vaW1hZ2UvYWI2NzYxNmQwMDAwYjI3MzY2YWJiNmE5NWFiNmViMGMwODhhMWNkMg==: File o directory non esistente _getImage@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53 get trackIcon@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25 updateWidgets@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:274:17 _playerPropsChanged@/home/lorenzo/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:226:26

sakithb commented 2 years ago

Try running rm home/$HOME/.config/media-controls/ and reinstalling the extension.

lorenzobazzana commented 2 years ago

When I try to run that command it says there's no such directory. I tried reinstalling the extension anyway and nothing changed.

sakithb commented 2 years ago

rm home/$HOME/.config/media-controls/

Oh I am dumb, the command should be rm -rf $HOME/.config/media-controls/

lorenzobazzana commented 2 years ago

Still nothing

sakithb commented 2 years ago

What is the output of `ls ~/.config/ | grep media-controls?

lorenzobazzana commented 2 years ago

No output

sakithb commented 2 years ago

Try restarting the shell with Alt+F2 and type r.

lorenzobazzana commented 2 years ago

Nothing again. Could it be a problem with Spotify?

sakithb commented 2 years ago

Most probably, what spotify do you use, snap, flatpak, or fusion?

lorenzobazzana commented 2 years ago

I got it from flatpak

sakithb commented 2 years ago

is offline mode switched on in spotify?

lorenzobazzana commented 2 years ago

No, it's not. Toggling offline mode on and off doesn't change anything either

sakithb commented 2 years ago

This issue seems specific to you. I could not figure out what the culprit was. I will close this issue for now, if the issue still exists in the next update feel free to reopen.

Dal78 commented 2 years ago

This seems to be happening to me. fresh install endevourOS downloaded from extentions.gnome site. Spotify is the flatpack if that matters