mihirlad55 / polybar-spotify-module

A collection of lightweight programs for use with a Polybar Spotify Module
GNU General Public License v3.0
140 stars 9 forks source link

Track title update broken ? #31

Closed arbaes closed 1 year ago

arbaes commented 1 year ago

It seems the current playing song is not displaying anymore, not sure how I can debug this.

Service is well up and running:

❯ systemctl --user status spotify-listener
● spotify-listener.service - A program that monitors Spotify DBus signals and communicates with polybar over IPC t>
     Loaded: loaded (/usr/lib/systemd/user/spotify-listener.service; enabled; preset: enabled)
     Active: active (running) since Mon 2022-10-24 19:09:43 CEST; 45min ago
   Main PID: 618 (spotify-listene)
      Tasks: 1 (limit: 16593)
     Memory: 412.0K
        CPU: 4ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/spotify-listener.service
             └─618 /usr/bin/spotify-listener

The command spotifyctl -q status --format '%artist%: %title%' also work as expected. Not sure how I can debug this£

Here's my polybar config FYI

[module/spotify]
type = custom/ipc
hook-0 = echo ""
hook-1 = spotifyctl -q status --format '%artist% - %title%'
initial = 1
format-padding = 1
;format-prefix = 
format-prefix-padding = 1
format-background = ${color.mb}
line-size = 1
; [i3wm only] - Uncomment the below line to focus on Spotify when clicking on the song name (credits to https://github.com/Esya)
click-left = i3-msg '[class="Spotify"] focus'

Not sure how I can properly debug this

arbaes commented 1 year ago

I currently use the following workaround ( but it's kinda bad because it miss the whole purpose of using dbus )

[module/spotify-noipc]
type = custom/script
interval = 1
exec = spotifyctl -q status --format '%artist% - %title%'
initial = 1
format-padding = 1
;format-prefix = 
format-prefix-padding = 1
format-background = ${color.mb}
line-size = 1
; [i3wm only] - Uncomment the below line to focus on Spotify when clicking on the song name (credits to https://github.com/Esya)
click-left = i3-msg '[class="Spotify"] focus'
arbaes commented 1 year ago

Closing as it's now working again for some reasons, not sure what happened though