raffaem / waybar-mediaplayer

A mediaplayer for waybar with progress bar, tooltip, album art and synced lyrics
MIT License
20 stars 2 forks source link

Progress bar seemingly not working #4

Closed jernejmarcic closed 7 months ago

jernejmarcic commented 7 months ago

Hello, sorry, its me again. Firstly let me say that I love your software and am using it on all my configs.

Problem description

The mediaplayer does not display the track length even when provided by MPRIS.

Using VLC

I tested it when playing a track via VLC which reports the length.

Here is the how it looks on the waybar, no progress bar: 20240214_23h14m55s_grim

Here is the metadata that is reported by playerctl:

❯ playerctl --player vlc metadata
vlc   mpris:trackid             '/org/videolan/vlc/playlist/3'
vlc   xesam:url                 file:///home/jernej/RustyPlayer/../Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac
vlc   xesam:title               Can't Take Me Down
vlc   xesam:artist              Dead Posey
vlc   xesam:album               Blue Monday
vlc   xesam:tracknumber         2
vlc   vlc:time                  196
vlc   mpris:length              196693832
vlc   xesam:genre               
vlc   xesam:contentCreated      2022-09-23
vlc   mpris:artUrl              file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg
vlc   vlc:copyright             © 2022 Position Music
vlc   vlc:length                196693
vlc   vlc:publisher             3

Replication steps

Play an audio track with any player that will report back the necessary metadata and see if the progress bar shows, its possible I could be doing something wrong.

raffaem commented 7 months ago

Hi,

The mediaplayer does not display the track length even when provided by MPRIS.

What do you mean "it doesn't display the track length"? Do you want the track length on the widget? So if the song lasts 3 minutes and 20 seconds, you want 3'20'' on the widget? Or the progress bar does not work? If so, can you provide the output of mediaplayer monitor -vvv?

jernejmarcic commented 7 months ago

My apologies, I meant the progress bar is not working. Here is the output:

❯ py mediaplayer monitor -vvv
[__main__] [main] [INFO] I was called
[__main__] [main] [DEBUG] Arguments received {'command': 'monitor', 'verbose': 3}
[__main__] [main] [DEBUG] config={'refresh_interval': 500, 'is_notification': False, 'notification_min_interval': 2, 'widget_length': 20, 'sepchar': '\uf444', 'surface_color': 'gray', 'overlay_color': 'cyan', 'interval': 1, 'text_rot_int': 1000, 'image_signal': 4, 'length_factor': 1, 'player_name': 'vlc', 'convert_to_jpeg': False, 'album_art_placeholder': 'no', 'lyrics_providers': ['Lrclib', 'Musixmatch', 'NetEase', 'Megalobiz'], 'lyrics_span_before': 2, 'lyrics_span_after': 2}
[__main__] [signal_album_art_change] [DEBUG] pkill returned: CompletedProcess(args=['pkill', '-RTMIN+4', 'waybar'], returncode=0)
[__main__] [main] [DEBUG] Splitting player_name on `.`. requested_player=vlc
[__main__] [main] [DEBUG] Found player 'vlc'
[__main__] [main] [DEBUG] Initializing player
[__main__] [init_player] [DEBUG] I was called
[__main__] [init_player] [DEBUG] name.name=vlc
[__main__] [init_player] [DEBUG] Calling update_metadata
[__main__] [update_metadata] [INFO] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=4380006
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
{"text": "\uf144 Can't Take Me Down", "class": "perc2-0", "tooltip": "<span><span variant='title-caps' font_weight='bold'>Can't Take Me Down</span>\n    Dead Posey    \n<i>   Blue Monday   </i>\n</span>"}
[__main__] [update_progressbar] [DEBUG] Returning True
[__main__] [download_art] [DEBUG] Updating album art
[__main__] [download_art] [DEBUG] Album art '/home/jernej/.cache/vlc/art/artistalbum/Dead Posey/Blue Monday/art.jpg' copied to '/tmp/waybar-mediaplayer-art'
[__main__] [signal_album_art_change] [DEBUG] pkill returned: CompletedProcess(args=['pkill', '-RTMIN+4', 'waybar'], returncode=0)
[urllib3.connectionpool] [_new_conn] [DEBUG] Starting new HTTPS connection (1): apic-desktop.musixmatch.com:443
[urllib3.connectionpool] [_make_request] [DEBUG] https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.search?q=Dead+Posey+Can%27t+Take+Me+Down&page_size=5&page=1&s_track_rating=desc&quorum_factor=1.0&app_id=web-desktop-app-v1.0&usertoken=240215b6f7bc850c87f39a81f83dfa2cbcc4cd716707f348d7beca&t=1707992313716 HTTP/1.1" 200 870
[urllib3.connectionpool] [_make_request] [DEBUG] https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.subtitle.get?track_id=233057541&subtitle_format=lrc&app_id=web-desktop-app-v1.0&usertoken=240215b6f7bc850c87f39a81f83dfa2cbcc4cd716707f348d7beca&t=1707992314073 HTTP/1.1" 200 2512
[__main__] [get_new_lyrics] [DEBUG] 0[00:15.49] Oh yeah, you think you're smart->[15.49] Oh yeah, you think you're smart
[__main__] [get_new_lyrics] [DEBUG] 1[00:17.30] You try to tear me apart->[17.3] You try to tear me apart
[__main__] [get_new_lyrics] [DEBUG] 2[00:19.55] While you hide in the dark->[19.55] While you hide in the dark
[__main__] [get_new_lyrics] [DEBUG] 3[00:21.16] Hate on me all that you want->[21.16] Hate on me all that you want
[__main__] [get_new_lyrics] [DEBUG] 4[00:26.55] Oh yeah, you think you're cool->[26.55] Oh yeah, you think you're cool
[__main__] [get_new_lyrics] [DEBUG] 5[00:28.65] Calling everyone fools->[28.65] Calling everyone fools
[__main__] [get_new_lyrics] [DEBUG] 6[00:30.58] Oh, the joke's on you->[30.58] Oh, the joke's on you
[__main__] [get_new_lyrics] [DEBUG] 7[00:31.92] But you don't even have a clue->[31.92] But you don't even have a clue
[__main__] [get_new_lyrics] [DEBUG] 8[00:35.92] So tie me in a noose->[35.92] So tie me in a noose
[__main__] [get_new_lyrics] [DEBUG] 9[00:39.63] You know I like the abuse->[39.63] You know I like the abuse
[__main__] [get_new_lyrics] [DEBUG] 10[00:45.28] Can't take me down, can't take me down->[45.28] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 11[00:48.23] 'Cause they all love me now->[48.23] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 12[00:50.90] Yeah, guess who's laughing now->[50.9] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 13[00:53.03] Can't take me down, can't take me down->[53.03] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 14[00:55.74] You know they love me now->[55.74] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 15[00:58.78] Yeah, guess who's laughing now->[58.78] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 16[00:59.88] Call me petty, call me vicious, I don't give a shit->[59.88] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 17[01:03.35] So you've had your fun, now to hell with it->[63.35] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 18[01:07.80] Can't take me down, can't take me down->[67.8] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 19[01:10.93] 'Cause they all love me now->[70.93] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 20[01:13.57] Yeah, guess who's laughing now->[73.57] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 21[01:17.06] Oh yeah, you think you're God->[77.06] Oh yeah, you think you're God
[__main__] [get_new_lyrics] [DEBUG] 22[01:19.06] You're just another fraud->[79.06] You're just another fraud
[__main__] [get_new_lyrics] [DEBUG] 23[01:21.14] So what? I have my flaws->[81.14] So what? I have my flaws
[__main__] [get_new_lyrics] [DEBUG] 24[01:22.76] I won, so you take a loss->[82.76] I won, so you take a loss
[__main__] [get_new_lyrics] [DEBUG] 25[01:28.05] Oh, to hell with you->[88.05] Oh, to hell with you
[__main__] [get_new_lyrics] [DEBUG] 26[01:30.41] And all the shit you spew->[90.41] And all the shit you spew
[__main__] [get_new_lyrics] [DEBUG] 27[01:32.27] Hope you enjoy the view->[92.27000000000001] Hope you enjoy the view
[__main__] [get_new_lyrics] [DEBUG] 28[01:34.18] Honey, you're already screwed->[94.18] Honey, you're already screwed
[__main__] [get_new_lyrics] [DEBUG] 29[01:37.92] So tie me in a noose->[97.92] So tie me in a noose
[__main__] [get_new_lyrics] [DEBUG] 30[01:41.69] You know I like the abuse->[101.69] You know I like the abuse
[__main__] [get_new_lyrics] [DEBUG] 31[01:47.05] Can't take me down, can't take me down->[107.05] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 32[01:50.21] 'Cause they all love me now->[110.21000000000001] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 33[01:53.04] Yeah, guess who's laughing now->[113.03999999999999] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 34[01:54.62] Can't take me down, can't take me down->[114.62] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 35[01:57.88] You know they love me now->[117.88] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 36[02:00.50] Yeah, guess who's laughing now->[120.5] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 37[02:01.89] Call me petty, call me vicious, I don't give a shit->[121.89] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 38[02:05.59] So you've had your fun, now to hell with it->[125.59] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 39[02:09.72] Can't take me down, can't take me down->[129.72] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 40[02:12.93] 'Cause they all love me now->[132.93] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 41[02:15.59] Yeah, guess who's laughing now->[135.59] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 42[02:17.84] ->[137.84] [INTERMISSION]
[__main__] [get_new_lyrics] [DEBUG] 43[02:22.75] You think you know me, but you don't know me->[142.75] You think you know me, but you don't know me
[__main__] [get_new_lyrics] [DEBUG] 44[02:26.75] And you think you own me, enjoy your misery->[146.75] And you think you own me, enjoy your misery
[__main__] [get_new_lyrics] [DEBUG] 45[02:30.41] You think you know me, but you don't know me->[150.41] You think you know me, but you don't know me
[__main__] [get_new_lyrics] [DEBUG] 46[02:34.99] Enjoy your misery->[154.99] Enjoy your misery
[__main__] [get_new_lyrics] [DEBUG] 47[02:37.83] Can't take me down, can't take me down->[157.82999999999998] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 48[02:41.09] 'Cause they all love me now, yeah->[161.09] 'Cause they all love me now, yeah
[__main__] [get_new_lyrics] [DEBUG] 49[02:45.06] Can't take me down, can't take me down->[165.06] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 50[02:48.22] You know they love me now->[168.22] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 51[02:50.91] Yeah, guess who's laughing now->[170.91] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 52[02:52.33] Call me petty, call me vicious, I don't give a shit->[172.32999999999998] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 53[02:55.99] So you've had your fun, now to hell with it->[175.99] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 54[03:00.18] Can't take me down, can't take me down->[180.18] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 55[03:03.36] 'Cause they all love me now->[183.36] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 56[03:06.15] Yeah, guess who's laughing now->[186.15] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 57[03:09.32] ->[189.32] [INTERMISSION]
[__main__] [update_metadata] [DEBUG] Returning
[__main__] [register_refresh_interval_callback] [INFO] I was called
[__main__] [init_player] [DEBUG] Returning None
[__main__] [on_playback_status] [INFO] I was called
[__main__] [on_playback_status] [DEBUG] status=<enum PLAYERCTL_PLAYBACK_STATUS_PLAYING of type Playerctl.PlaybackStatus>
[__main__] [on_playback_status] [DEBUG] Calling register_refresh_interval_callback
[__main__] [register_refresh_interval_callback] [INFO] I was called
[__main__] [register_refresh_interval_callback] [DEBUG] Registering `refresh_interval` callback
[__main__] [on_playback_status] [DEBUG] Calling update_progressbar
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=4380006
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
{"text": "\uf28b ake Me Down \uf444 Can't T", "class": "perc2-0", "tooltip": "<span><span variant='title-caps' font_weight='bold'>                Can't Take Me Down                </span>\n                    Dead Posey                    \n<i>                    Blue Monday                    </i>\n---------------------------------------------------\n                   [Musixmatch]                   \n<b>                      [INTRO]                      </b>\n          Oh yeah, you think you're smart          \n             You try to tear me apart             \n            While you hide in the dark            \n           Hate on me all that you want           </span>"}
[__main__] [update_progressbar] [DEBUG] Returning True
[__main__] [on_playback_status] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=4751493
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
[__main__] [update_progressbar] [DEBUG] Song is the same and neither the text nor the progressbar nor the lyrics needs an update. Returning
[__main__] [on_refresh_interval] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=5308773
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
{"text": "\uf28b ke Me Down \uf444 Can't Ta", "class": "perc3-0", "tooltip": "<span><span variant='title-caps' font_weight='bold'>                Can't Take Me Down                </span>\n                    Dead Posey                    \n<i>                    Blue Monday                    </i>\n---------------------------------------------------\n                   [Musixmatch]                   \n<b>                      [INTRO]                      </b>\n          Oh yeah, you think you're smart          \n             You try to tear me apart             \n            While you hide in the dark            \n           Hate on me all that you want           </span>"}
[__main__] [update_progressbar] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=5866086
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
[__main__] [update_progressbar] [DEBUG] Song is the same and neither the text nor the progressbar nor the lyrics needs an update. Returning
[__main__] [on_refresh_interval] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=6144721
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
{"text": "\uf28b e Me Down \uf444 Can't Tak", "class": "perc3-0", "tooltip": "<span><span variant='title-caps' font_weight='bold'>                Can't Take Me Down                </span>\n                    Dead Posey                    \n<i>                    Blue Monday                    </i>\n---------------------------------------------------\n                   [Musixmatch]                   \n<b>                      [INTRO]                      </b>\n          Oh yeah, you think you're smart          \n             You try to tear me apart             \n            While you hide in the dark            \n           Hate on me all that you want           </span>"}
[__main__] [update_progressbar] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] Returning True
[__main__] [on_playback_status] [INFO] I was called
[__main__] [on_playback_status] [DEBUG] status=<enum PLAYERCTL_PLAYBACK_STATUS_PAUSED of type Playerctl.PlaybackStatus>
[__main__] [on_playback_status] [DEBUG] Calling register_refresh_interval_callback
[__main__] [register_refresh_interval_callback] [INFO] I was called
[__main__] [on_playback_status] [DEBUG] Calling update_progressbar
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=6423367
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
[__main__] [update_progressbar] [DEBUG] Song is the same and neither the text nor the progressbar nor the lyrics needs an update. Returning
[__main__] [on_playback_status] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] I was called
[__main__] [on_refresh_interval] [DEBUG] Returning False
raffaem commented 7 months ago

can you post waybar's style?

raffaem commented 7 months ago

Can you try running src/mkstyle and see if it fixes the problem?

Some time ago I changed the format for the classes.

Your script is generating the classes in the right format, maybe your .css is not updated.

jernejmarcic commented 7 months ago

Hello, sorry for not responding for so long I was busy and I kinda forgot about this. I made sure I updated the project and that I copied all the configuration from the README. Now it does display the progress bar, however it does not display the image and it crashes

Using plasma-browser-integration

Firstly the metadata provided:

❯ playerctl -p plasma-browser-integration metadata
plasma-browser-integration kde:mediaSrc              blob:https://www.youtube.com/f5b3c847-861c-4639-b5fe-7b6bb3a3d963
plasma-browser-integration kde:pid                   1104
plasma-browser-integration mpris:artUrl              https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=SCPVDpyApgQ&time=334.78679097245424
plasma-browser-integration mpris:length              705721000
plasma-browser-integration mpris:trackid             '/org/kde/plasma/browser_integration/1337'
plasma-browser-integration xesam:artist              ThePrimeagen
plasma-browser-integration xesam:title               Are Developers Ok?
plasma-browser-integration xesam:url                 https://www.youtube.com/watch?v=SCPVDpyApgQ

I assume the problem is that the artUrl is https:// instead of file ://

This error appears in the waybar log

Traceback (most recent call last):
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 653, in <module>
    main()
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 626, in main
    init_player(manager, player)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 534, in init_player
    update_metadata(player, player.props.metadata, manager)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 287, in update_metadata
    get_new_lyrics(artist, title)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 330, in get_new_lyrics
    lyr = download_lyrics(artist, title)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 308, in download_lyrics
    lt = lt.replace("\n", "")
         ^^^^^^^^^^

Running mediaplayer monitor -vvv:

❯ py mediaplayer monitor -vvv
[__main__] [main] [INFO] I was called
[__main__] [main] [DEBUG] Arguments received {'command': 'monitor', 'verbose': 3}
[__main__] [main] [DEBUG] config={'refresh_interval': 500, 'is_notification': False, 'notification_min_interval': 2, 'widget_length': 20, 'sepchar': '\uf444', 'surface_color': 'gray', 'overlay_color': 'cyan', 'interval': 1, 'text_rot_int': 1000, 'image_signal': 4, 'length_factor': 1, 'player_name': 'plasma-browser-integration', 'convert_to_jpeg': False, 'album_art_placeholder': 'no', 'lyrics_providers': ['Lrclib', 'Musixmatch', 'NetEase', 'Megalobiz'], 'lyrics_span_before': 2, 'lyrics_span_after': 2}
[__main__] [signal_album_art_change] [DEBUG] pkill returned: CompletedProcess(args=['pkill', '-RTMIN+4', 'waybar'], returncode=0)
[__main__] [main] [DEBUG] Splitting player_name on `.`. requested_player=plasma-browser-integration
[__main__] [main] [DEBUG] Found player 'plasma-browser-integration'
[__main__] [main] [DEBUG] Initializing player
[__main__] [init_player] [DEBUG] I was called
[__main__] [init_player] [DEBUG] name.name=plasma-browser-integration
[__main__] [init_player] [DEBUG] Calling update_metadata
[__main__] [update_metadata] [INFO] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=219712978
[__main__] [update_progressbar] [DEBUG] pmetadata={'kde:mediaSrc': <'blob:https://www.youtube.com/f5b3c847-861c-4639-b5fe-7b6bb3a3d963'>, 'kde:pid': <1104>, 'mpris:artUrl': <'https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=SCPVDpyApgQ&time=334.78679097245424'>, 'mpris:length': <int64 705721000>, 'mpris:trackid': <objectpath '/org/kde/plasma/browser_integration/1337'>, 'xesam:artist': <['ThePrimeagen']>, 'xesam:title': <'Are Developers Ok?'>, 'xesam:url': <'https://www.youtube.com/watch?v=SCPVDpyApgQ'>}
[__main__] [update_progressbar] [DEBUG] length=705721000
{"text": "\uf28b Are Developers Ok?", "class": "perc31-0", "tooltip": "<span><span variant='title-caps' font_weight='bold'>Are Developers Ok?</span>\n   ThePrimeagen   \n<i>                  </i>\n</span>"}
[__main__] [update_progressbar] [DEBUG] Returning True
[__main__] [download_art] [DEBUG] Updating album art
[urllib3.connectionpool] [_new_conn] [DEBUG] Starting new HTTPS connection (1): dearrow-thumb.ajay.app:443
[urllib3.connectionpool] [_make_request] [DEBUG] https://dearrow-thumb.ajay.app:443 "GET /api/v1/getThumbnail?videoID=SCPVDpyApgQ&time=334.78679097245424 HTTP/1.1" 200 20430
[__main__] [download_art] [DEBUG] Album art 'https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=SCPVDpyApgQ&time=334.78679097245424' downloaded and saved into '/tmp/waybar-mediaplayer-art'
[__main__] [signal_album_art_change] [DEBUG] pkill returned: CompletedProcess(args=['pkill', '-RTMIN+4', 'waybar'], returncode=0)
[urllib3.connectionpool] [_new_conn] [DEBUG] Starting new HTTPS connection (1): apic-desktop.musixmatch.com:443
[urllib3.connectionpool] [_make_request] [DEBUG] https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/token.get?user_language=en&app_id=web-desktop-app-v1.0&t=1708361073850 HTTP/1.1" 200 1868
[urllib3.connectionpool] [_make_request] [DEBUG] https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.search?q=ThePrimeagen+Are+Developers+Ok%3F&page_size=5&page=1&s_track_rating=desc&quorum_factor=1.0&app_id=web-desktop-app-v1.0&usertoken=24021977446572b07e6633b30ba2948a665b1945e192216189e474&t=1708361075059 HTTP/1.1" 200 120
[urllib3.connectionpool] [_new_conn] [DEBUG] Starting new HTTPS connection (1): lrclib.net:443
[urllib3.connectionpool] [_make_request] [DEBUG] https://lrclib.net:443 "GET /api/search?q=ThePrimeagen+Are+Developers+Ok%3F HTTP/1.1" 200 2
[urllib3.connectionpool] [_new_conn] [DEBUG] Starting new HTTPS connection (1): music.163.com:443
[urllib3.connectionpool] [_make_request] [DEBUG] https://music.163.com:443 "GET /api/search/pc?limit=10&type=1&offset=0&s=ThePrimeagen+Are+Developers+Ok%3F HTTP/1.1" 200 None
[urllib3.connectionpool] [_new_conn] [DEBUG] Starting new HTTPS connection (1): www.megalobiz.com:443
[urllib3.connectionpool] [_make_request] [DEBUG] https://www.megalobiz.com:443 "GET /search/all?qry=ThePrimeagen%20Are%20Developers%20Ok?&searchButton.x=0&searchButton.y=0 HTTP/1.1" 200 None
Traceback (most recent call last):
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 653, in <module>
    main()
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 626, in main
    init_player(manager, player)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 534, in init_player
    update_metadata(player, player.props.metadata, manager)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 287, in update_metadata
    get_new_lyrics(artist, title)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 330, in get_new_lyrics
    lyr = download_lyrics(artist, title)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 308, in download_lyrics
    lt = lt.replace("\n", "")
         ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

Using VLC

No cover art is displayed but the progress bar works so its fine.

This is how it appears in my waybar: 20240219_17h34m11s_grim

Metadata:

❯ playerctl -p vlc metadata
vlc   mpris:trackid             '/org/videolan/vlc/playlist/3'
vlc   xesam:url                 file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac
vlc   xesam:title               Can't Take Me Down
vlc   xesam:artist              Dead Posey
vlc   xesam:album               Blue Monday
vlc   xesam:tracknumber         2
vlc   vlc:time                  196
vlc   mpris:length              196693832
vlc   xesam:genre               
vlc   xesam:contentCreated      2022-09-23
vlc   mpris:artUrl              file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg
vlc   vlc:copyright             © 2022 Position Music
vlc   vlc:length                196693
vlc   vlc:publisher             3

This error appears in the waybar log:

  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 49, in on_player_appeared
    init_player(manager, player)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 534, in init_player
    update_metadata(player, player.props.metadata, manager)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 287, in update_metadata
    get_new_lyrics(artist, title)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 330, in get_new_lyrics
    lyr = download_lyrics(artist, title)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 308, in download_lyrics
    lt = lt.replace("\n", "")
         ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'
Traceback (most recent call last):
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 49, in on_player_appeared
    init_player(manager, player)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 534, in init_player
    update_metadata(player, player.props.metadata, manager)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 287, in update_metadata
    get_new_lyrics(artist, title)
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 330, in get_new_lyrics
    lyr = download_lyrics(artist, title)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jernej/.config/waybar/waybar-mediaplayer/src/mediaplayer", line 308, in download_lyrics
    lt = lt.replace("\n", "")
         ^^^^^^^^^^

Running mediaplayer monitor -vvv:

❯ py mediaplayer monitor -vvv
[__main__] [main] [INFO] I was called
[__main__] [main] [DEBUG] Arguments received {'command': 'monitor', 'verbose': 3}
[__main__] [main] [DEBUG] config={'refresh_interval': 500, 'is_notification': False, 'notification_min_interval': 2, 'widget_length': 20, 'sepchar': '\uf444', 'surface_color': 'gray', 'overlay_color': 'cyan', 'interval': 1, 'text_rot_int': 1000, 'image_signal': 4, 'length_factor': 1, 'player_name': 'vlc', 'convert_to_jpeg': False, 'album_art_placeholder': 'no', 'lyrics_providers': ['Lrclib', 'Musixmatch', 'NetEase', 'Megalobiz'], 'lyrics_span_before': 2, 'lyrics_span_after': 2}
[__main__] [signal_album_art_change] [DEBUG] pkill returned: CompletedProcess(args=['pkill', '-RTMIN+4', 'waybar'], returncode=0)
[__main__] [main] [DEBUG] Splitting player_name on `.`. requested_player=vlc
[__main__] [main] [DEBUG] Found player 'vlc'
[__main__] [main] [DEBUG] Initializing player
[__main__] [init_player] [DEBUG] I was called
[__main__] [init_player] [DEBUG] name.name=vlc
[__main__] [init_player] [DEBUG] Calling update_metadata
[__main__] [update_metadata] [INFO] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=2243750
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
{"text": "\uf28b Can't Take Me Down", "class": "perc1-0", "tooltip": "<span><span variant='title-caps' font_weight='bold'>Can't Take Me Down</span>\n    Dead Posey    \n<i>   Blue Monday   </i>\n</span>"}
[__main__] [update_progressbar] [DEBUG] Returning True
[__main__] [download_art] [DEBUG] Updating album art
[__main__] [download_art] [DEBUG] Album art '/home/jernej/.cache/vlc/art/artistalbum/Dead Posey/Blue Monday/art.jpg' copied to '/tmp/waybar-mediaplayer-art'
[__main__] [signal_album_art_change] [DEBUG] pkill returned: CompletedProcess(args=['pkill', '-RTMIN+4', 'waybar'], returncode=0)
[urllib3.connectionpool] [_new_conn] [DEBUG] Starting new HTTPS connection (1): apic-desktop.musixmatch.com:443
[urllib3.connectionpool] [_make_request] [DEBUG] https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.search?q=Dead+Posey+Can%27t+Take+Me+Down&page_size=5&page=1&s_track_rating=desc&quorum_factor=1.0&app_id=web-desktop-app-v1.0&usertoken=24021977446572b07e6633b30ba2948a665b1945e192216189e474&t=1708361297948 HTTP/1.1" 200 869
[urllib3.connectionpool] [_make_request] [DEBUG] https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.subtitle.get?track_id=233057541&subtitle_format=lrc&app_id=web-desktop-app-v1.0&usertoken=24021977446572b07e6633b30ba2948a665b1945e192216189e474&t=1708361303365 HTTP/1.1" 200 2509
[__main__] [get_new_lyrics] [DEBUG] 0[00:15.49] Oh yeah, you think you're smart->[15.49] Oh yeah, you think you're smart
[__main__] [get_new_lyrics] [DEBUG] 1[00:17.30] You try to tear me apart->[17.3] You try to tear me apart
[__main__] [get_new_lyrics] [DEBUG] 2[00:19.55] While you hide in the dark->[19.55] While you hide in the dark
[__main__] [get_new_lyrics] [DEBUG] 3[00:21.16] Hate on me all that you want->[21.16] Hate on me all that you want
[__main__] [get_new_lyrics] [DEBUG] 4[00:26.55] Oh yeah, you think you're cool->[26.55] Oh yeah, you think you're cool
[__main__] [get_new_lyrics] [DEBUG] 5[00:28.65] Calling everyone fools->[28.65] Calling everyone fools
[__main__] [get_new_lyrics] [DEBUG] 6[00:30.58] Oh, the joke's on you->[30.58] Oh, the joke's on you
[__main__] [get_new_lyrics] [DEBUG] 7[00:31.92] But you don't even have a clue->[31.92] But you don't even have a clue
[__main__] [get_new_lyrics] [DEBUG] 8[00:35.92] So tie me in a noose->[35.92] So tie me in a noose
[__main__] [get_new_lyrics] [DEBUG] 9[00:39.63] You know I like the abuse->[39.63] You know I like the abuse
[__main__] [get_new_lyrics] [DEBUG] 10[00:45.28] Can't take me down, can't take me down->[45.28] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 11[00:48.23] 'Cause they all love me now->[48.23] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 12[00:50.90] Yeah, guess who's laughing now->[50.9] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 13[00:53.03] Can't take me down, can't take me down->[53.03] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 14[00:55.74] You know they love me now->[55.74] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 15[00:58.78] Yeah, guess who's laughing now->[58.78] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 16[00:59.88] Call me petty, call me vicious, I don't give a shit->[59.88] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 17[01:03.35] So you've had your fun, now to hell with it->[63.35] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 18[01:07.80] Can't take me down, can't take me down->[67.8] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 19[01:10.93] 'Cause they all love me now->[70.93] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 20[01:13.57] Yeah, guess who's laughing now->[73.57] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 21[01:17.06] Oh yeah, you think you're God->[77.06] Oh yeah, you think you're God
[__main__] [get_new_lyrics] [DEBUG] 22[01:19.06] You're just another fraud->[79.06] You're just another fraud
[__main__] [get_new_lyrics] [DEBUG] 23[01:21.14] So what? I have my flaws->[81.14] So what? I have my flaws
[__main__] [get_new_lyrics] [DEBUG] 24[01:22.76] I won, so you take a loss->[82.76] I won, so you take a loss
[__main__] [get_new_lyrics] [DEBUG] 25[01:28.05] Oh, to hell with you->[88.05] Oh, to hell with you
[__main__] [get_new_lyrics] [DEBUG] 26[01:30.41] And all the shit you spew->[90.41] And all the shit you spew
[__main__] [get_new_lyrics] [DEBUG] 27[01:32.27] Hope you enjoy the view->[92.27000000000001] Hope you enjoy the view
[__main__] [get_new_lyrics] [DEBUG] 28[01:34.18] Honey, you're already screwed->[94.18] Honey, you're already screwed
[__main__] [get_new_lyrics] [DEBUG] 29[01:37.92] So tie me in a noose->[97.92] So tie me in a noose
[__main__] [get_new_lyrics] [DEBUG] 30[01:41.69] You know I like the abuse->[101.69] You know I like the abuse
[__main__] [get_new_lyrics] [DEBUG] 31[01:47.05] Can't take me down, can't take me down->[107.05] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 32[01:50.21] 'Cause they all love me now->[110.21000000000001] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 33[01:53.04] Yeah, guess who's laughing now->[113.03999999999999] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 34[01:54.62] Can't take me down, can't take me down->[114.62] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 35[01:57.88] You know they love me now->[117.88] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 36[02:00.50] Yeah, guess who's laughing now->[120.5] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 37[02:01.89] Call me petty, call me vicious, I don't give a shit->[121.89] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 38[02:05.59] So you've had your fun, now to hell with it->[125.59] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 39[02:09.72] Can't take me down, can't take me down->[129.72] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 40[02:12.93] 'Cause they all love me now->[132.93] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 41[02:15.59] Yeah, guess who's laughing now->[135.59] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 42[02:17.84] ->[137.84] [INTERMISSION]
[__main__] [get_new_lyrics] [DEBUG] 43[02:22.75] You think you know me, but you don't know me->[142.75] You think you know me, but you don't know me
[__main__] [get_new_lyrics] [DEBUG] 44[02:26.75] And you think you own me, enjoy your misery->[146.75] And you think you own me, enjoy your misery
[__main__] [get_new_lyrics] [DEBUG] 45[02:30.41] You think you know me, but you don't know me->[150.41] You think you know me, but you don't know me
[__main__] [get_new_lyrics] [DEBUG] 46[02:34.99] Enjoy your misery->[154.99] Enjoy your misery
[__main__] [get_new_lyrics] [DEBUG] 47[02:37.83] Can't take me down, can't take me down->[157.82999999999998] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 48[02:41.09] 'Cause they all love me now, yeah->[161.09] 'Cause they all love me now, yeah
[__main__] [get_new_lyrics] [DEBUG] 49[02:45.06] Can't take me down, can't take me down->[165.06] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 50[02:48.22] You know they love me now->[168.22] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 51[02:50.91] Yeah, guess who's laughing now->[170.91] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 52[02:52.33] Call me petty, call me vicious, I don't give a shit->[172.32999999999998] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 53[02:55.99] So you've had your fun, now to hell with it->[175.99] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 54[03:00.18] Can't take me down, can't take me down->[180.18] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 55[03:03.36] 'Cause they all love me now->[183.36] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 56[03:06.15] Yeah, guess who's laughing now->[186.15] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 57[03:09.32] ->[189.32] [INTERMISSION]
[__main__] [update_metadata] [DEBUG] Returning
[__main__] [register_refresh_interval_callback] [INFO] I was called
[__main__] [register_refresh_interval_callback] [DEBUG] Registering `refresh_interval` callback
[__main__] [init_player] [DEBUG] Returning None
[__main__] [main] [DEBUG] Found player 'plasma-browser-integration'
[__main__] [main] [DEBUG] This is not the filtered player, skipping it
[__main__] [main] [DEBUG] Found player 'firefox'
[__main__] [main] [DEBUG] This is not the filtered player, skipping it
[__main__] [on_refresh_interval] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=8373872
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
{"text": "\uf28b Take Me Down \uf444 Can't ", "class": "perc4-0", "tooltip": "<span><span variant='title-caps' font_weight='bold'>                Can't Take Me Down                </span>\n                    Dead Posey                    \n<i>                    Blue Monday                    </i>\n---------------------------------------------------\n                   [Musixmatch]                   \n<b>                      [INTRO]                      </b>\n          Oh yeah, you think you're smart          \n             You try to tear me apart             \n            While you hide in the dark            \n           Hate on me all that you want           </span>"}
[__main__] [update_progressbar] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=8931098
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
[__main__] [update_progressbar] [DEBUG] Song is the same and neither the text nor the progressbar nor the lyrics needs an update. Returning
[__main__] [on_refresh_interval] [DEBUG] Returning True
[__main__] [on_playback_status] [INFO] I was called
[__main__] [on_playback_status] [DEBUG] status=<enum PLAYERCTL_PLAYBACK_STATUS_PAUSED of type Playerctl.PlaybackStatus>
[__main__] [on_playback_status] [DEBUG] Calling register_refresh_interval_callback
[__main__] [register_refresh_interval_callback] [INFO] I was called
[__main__] [on_playback_status] [DEBUG] Calling update_progressbar
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=9209734
[__main__] [update_progressbar] [DEBUG] pmetadata={'mpris:trackid': <objectpath '/org/videolan/vlc/playlist/3'>, 'xesam:url': <'file:///home/jernej/Music/Playlist/rock%20on/01%20-%20Dead%20Posey%20-%20Can%27t%20Take%20Me%20Down%28Explicit%29.flac'>, 'xesam:title': <"Can't Take Me Down">, 'xesam:artist': <['Dead Posey']>, 'xesam:album': <'Blue Monday'>, 'xesam:tracknumber': <'2'>, 'vlc:time': <uint32 196>, 'mpris:length': <int64 196693832>, 'xesam:genre': <['']>, 'xesam:contentCreated': <'2022-09-23'>, 'mpris:artUrl': <'file:///home/jernej/.cache/vlc/art/artistalbum/Dead%20Posey/Blue%20Monday/art.jpg'>, 'vlc:copyright': <'© 2022 Position Music'>, 'vlc:length': <int64 196693>, 'vlc:publisher': <3>}
[__main__] [update_progressbar] [DEBUG] length=196693832
[__main__] [update_progressbar] [DEBUG] Song is the same and neither the text nor the progressbar nor the lyrics needs an update. Returning
[__main__] [on_playback_status] [DEBUG] Returning True
[__main__] [on_refresh_interval] [DEBUG] I was called
[__main__] [on_refresh_interval] [DEBUG] Returning False

Using rustyplayer (my audioplayer)

I only included this here because its the only one where the cover image worked There is an error message for the track lenght but since my metadata is lacking its my fault

This is how it appears in waybar: 20240219_17h37m14s_grim

This is the metadata:

❯ playerctl -p rustyplayer metadata
rustyplayer mpris:length              196693832
rustyplayer mpris:artUrl              file:///tmp/Blue Monday.jpg
rustyplayer xesam:artist              Dead Posey
rustyplayer mpris:trackid             '/'
rustyplayer xesam:album               Blue Monday
rustyplayer xesam:title               Can't Take Me Down

Running mediaplayer monitor -vvv:

❯ py mediaplayer monitor -vvv
[__main__] [main] [INFO] I was called
[__main__] [main] [DEBUG] Arguments received {'command': 'monitor', 'verbose': 3}
[__main__] [main] [DEBUG] config={'refresh_interval': 500, 'is_notification': False, 'notification_min_interval': 2, 'widget_length': 20, 'sepchar': '\uf444', 'surface_color': 'gray', 'overlay_color': 'cyan', 'interval': 1, 'text_rot_int': 1000, 'image_signal': 4, 'length_factor': 1, 'player_name': 'rustyplayer', 'convert_to_jpeg': False, 'album_art_placeholder': 'no', 'lyrics_providers': ['Lrclib', 'Musixmatch', 'NetEase', 'Megalobiz'], 'lyrics_span_before': 2, 'lyrics_span_after': 2}
[__main__] [signal_album_art_change] [DEBUG] pkill returned: CompletedProcess(args=['pkill', '-RTMIN+4', 'waybar'], returncode=0)
[__main__] [main] [DEBUG] Splitting player_name on `.`. requested_player=rustyplayer
[__main__] [main] [DEBUG] Found player 'rustyplayer'
[__main__] [main] [DEBUG] Initializing player
[__main__] [init_player] [DEBUG] I was called
[__main__] [init_player] [DEBUG] name.name=rustyplayer
[__main__] [init_player] [DEBUG] Calling update_metadata
[__main__] [update_metadata] [INFO] I was called
[__main__] [update_progressbar] [DEBUG] I was called
[__main__] [update_progressbar] [DEBUG] pos=0
[__main__] [update_progressbar] [DEBUG] pos from CLI=0.0
[__main__] [update_progressbar] [DEBUG] pmetadata={'xesam:title': <"Can't Take Me Down">, 'xesam:album': <'Blue Monday'>, 'mpris:artUrl': <'file:///tmp/Blue Monday.jpg'>, 'mpris:trackid': <objectpath '/'>, 'xesam:artist': <['Dead Posey']>, 'mpris:length': <int64 196693832>}
[__main__] [update_progressbar] [DEBUG] length=196693832
{"text": "\uf144 Can't Take Me Down", "class": "perc0-0", "tooltip": "<span><span variant='title-caps' font_weight='bold'>Can't Take Me Down</span>\n    Dead Posey    \n<i>   Blue Monday   </i>\n</span>"}
[__main__] [update_progressbar] [DEBUG] Returning True
[__main__] [download_art] [DEBUG] Updating album art
[__main__] [download_art] [DEBUG] Album art '/tmp/Blue Monday.jpg' copied to '/tmp/waybar-mediaplayer-art'
[__main__] [signal_album_art_change] [DEBUG] pkill returned: CompletedProcess(args=['pkill', '-RTMIN+4', 'waybar'], returncode=0)
[urllib3.connectionpool] [_new_conn] [DEBUG] Starting new HTTPS connection (1): apic-desktop.musixmatch.com:443
[urllib3.connectionpool] [_make_request] [DEBUG] https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.search?q=Dead+Posey+Can%27t+Take+Me+Down&page_size=5&page=1&s_track_rating=desc&quorum_factor=1.0&app_id=web-desktop-app-v1.0&usertoken=24021977446572b07e6633b30ba2948a665b1945e192216189e474&t=1708361412057 HTTP/1.1" 200 871
[urllib3.connectionpool] [_make_request] [DEBUG] https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.subtitle.get?track_id=233057541&subtitle_format=lrc&app_id=web-desktop-app-v1.0&usertoken=24021977446572b07e6633b30ba2948a665b1945e192216189e474&t=1708361412207 HTTP/1.1" 200 2517
[__main__] [get_new_lyrics] [DEBUG] 0[00:15.49] Oh yeah, you think you're smart->[15.49] Oh yeah, you think you're smart
[__main__] [get_new_lyrics] [DEBUG] 1[00:17.30] You try to tear me apart->[17.3] You try to tear me apart
[__main__] [get_new_lyrics] [DEBUG] 2[00:19.55] While you hide in the dark->[19.55] While you hide in the dark
[__main__] [get_new_lyrics] [DEBUG] 3[00:21.16] Hate on me all that you want->[21.16] Hate on me all that you want
[__main__] [get_new_lyrics] [DEBUG] 4[00:26.55] Oh yeah, you think you're cool->[26.55] Oh yeah, you think you're cool
[__main__] [get_new_lyrics] [DEBUG] 5[00:28.65] Calling everyone fools->[28.65] Calling everyone fools
[__main__] [get_new_lyrics] [DEBUG] 6[00:30.58] Oh, the joke's on you->[30.58] Oh, the joke's on you
[__main__] [get_new_lyrics] [DEBUG] 7[00:31.92] But you don't even have a clue->[31.92] But you don't even have a clue
[__main__] [get_new_lyrics] [DEBUG] 8[00:35.92] So tie me in a noose->[35.92] So tie me in a noose
[__main__] [get_new_lyrics] [DEBUG] 9[00:39.63] You know I like the abuse->[39.63] You know I like the abuse
[__main__] [get_new_lyrics] [DEBUG] 10[00:45.28] Can't take me down, can't take me down->[45.28] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 11[00:48.23] 'Cause they all love me now->[48.23] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 12[00:50.90] Yeah, guess who's laughing now->[50.9] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 13[00:53.03] Can't take me down, can't take me down->[53.03] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 14[00:55.74] You know they love me now->[55.74] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 15[00:58.78] Yeah, guess who's laughing now->[58.78] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 16[00:59.88] Call me petty, call me vicious, I don't give a shit->[59.88] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 17[01:03.35] So you've had your fun, now to hell with it->[63.35] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 18[01:07.80] Can't take me down, can't take me down->[67.8] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 19[01:10.93] 'Cause they all love me now->[70.93] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 20[01:13.57] Yeah, guess who's laughing now->[73.57] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 21[01:17.06] Oh yeah, you think you're God->[77.06] Oh yeah, you think you're God
[__main__] [get_new_lyrics] [DEBUG] 22[01:19.06] You're just another fraud->[79.06] You're just another fraud
[__main__] [get_new_lyrics] [DEBUG] 23[01:21.14] So what? I have my flaws->[81.14] So what? I have my flaws
[__main__] [get_new_lyrics] [DEBUG] 24[01:22.76] I won, so you take a loss->[82.76] I won, so you take a loss
[__main__] [get_new_lyrics] [DEBUG] 25[01:28.05] Oh, to hell with you->[88.05] Oh, to hell with you
[__main__] [get_new_lyrics] [DEBUG] 26[01:30.41] And all the shit you spew->[90.41] And all the shit you spew
[__main__] [get_new_lyrics] [DEBUG] 27[01:32.27] Hope you enjoy the view->[92.27000000000001] Hope you enjoy the view
[__main__] [get_new_lyrics] [DEBUG] 28[01:34.18] Honey, you're already screwed->[94.18] Honey, you're already screwed
[__main__] [get_new_lyrics] [DEBUG] 29[01:37.92] So tie me in a noose->[97.92] So tie me in a noose
[__main__] [get_new_lyrics] [DEBUG] 30[01:41.69] You know I like the abuse->[101.69] You know I like the abuse
[__main__] [get_new_lyrics] [DEBUG] 31[01:47.05] Can't take me down, can't take me down->[107.05] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 32[01:50.21] 'Cause they all love me now->[110.21000000000001] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 33[01:53.04] Yeah, guess who's laughing now->[113.03999999999999] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 34[01:54.62] Can't take me down, can't take me down->[114.62] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 35[01:57.88] You know they love me now->[117.88] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 36[02:00.50] Yeah, guess who's laughing now->[120.5] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 37[02:01.89] Call me petty, call me vicious, I don't give a shit->[121.89] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 38[02:05.59] So you've had your fun, now to hell with it->[125.59] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 39[02:09.72] Can't take me down, can't take me down->[129.72] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 40[02:12.93] 'Cause they all love me now->[132.93] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 41[02:15.59] Yeah, guess who's laughing now->[135.59] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 42[02:17.84] ->[137.84] [INTERMISSION]
[__main__] [get_new_lyrics] [DEBUG] 43[02:22.75] You think you know me, but you don't know me->[142.75] You think you know me, but you don't know me
[__main__] [get_new_lyrics] [DEBUG] 44[02:26.75] And you think you own me, enjoy your misery->[146.75] And you think you own me, enjoy your misery
[__main__] [get_new_lyrics] [DEBUG] 45[02:30.41] You think you know me, but you don't know me->[150.41] You think you know me, but you don't know me
[__main__] [get_new_lyrics] [DEBUG] 46[02:34.99] Enjoy your misery->[154.99] Enjoy your misery
[__main__] [get_new_lyrics] [DEBUG] 47[02:37.83] Can't take me down, can't take me down->[157.82999999999998] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 48[02:41.09] 'Cause they all love me now, yeah->[161.09] 'Cause they all love me now, yeah
[__main__] [get_new_lyrics] [DEBUG] 49[02:45.06] Can't take me down, can't take me down->[165.06] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 50[02:48.22] You know they love me now->[168.22] You know they love me now
[__main__] [get_new_lyrics] [DEBUG] 51[02:50.91] Yeah, guess who's laughing now->[170.91] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 52[02:52.33] Call me petty, call me vicious, I don't give a shit->[172.32999999999998] Call me petty, call me vicious, I don't give a shit
[__main__] [get_new_lyrics] [DEBUG] 53[02:55.99] So you've had your fun, now to hell with it->[175.99] So you've had your fun, now to hell with it
[__main__] [get_new_lyrics] [DEBUG] 54[03:00.18] Can't take me down, can't take me down->[180.18] Can't take me down, can't take me down
[__main__] [get_new_lyrics] [DEBUG] 55[03:03.36] 'Cause they all love me now->[183.36] 'Cause they all love me now
[__main__] [get_new_lyrics] [DEBUG] 56[03:06.15] Yeah, guess who's laughing now->[186.15] Yeah, guess who's laughing now
[__main__] [get_new_lyrics] [DEBUG] 57[03:09.32] ->[189.32] [INTERMISSION]
[__main__] [update_metadata] [DEBUG] Returning
[__main__] [register_refresh_interval_callback] [INFO] I was called
[__main__] [init_player] [DEBUG] Returning None
[__main__] [main] [DEBUG] Found player 'plasma-browser-integration'
[__main__] [main] [DEBUG] This is not the filtered player, skipping it
[__main__] [main] [DEBUG] Found player 'firefox'
[__main__] [main] [DEBUG] This is not the filtered player, skipping it
raffaem commented 7 months ago

It's not finding the lyrics.

Please try to update.

jernejmarcic commented 7 months ago

I have updated and it appears to work now

raffaem commented 7 months ago

Great, thanks for the report! :)