d093w1z / polybar-now-playing

Script for polybar to display and control media(not only Spotify) using DBus.
70 stars 10 forks source link

"error: Failed to parse contents." #4

Closed Light034 closed 3 years ago

Light034 commented 3 years ago

Hi, thanks a lot for the script, I've been getting this error when I launch polybar from the terminal with the script enabled Screenshot_2021-07-20-10_602x795 the bar still launches properly but it's annoying because when modifying the bar manually I reload it from terminal to look for errors and this spams away any other error from other modules. The bar still works though.

d093w1z commented 3 years ago

Sorry for the delay. Do the buttons work when the module is loaded? This seems to be a config issue so it would be helpful if you provided the config too. Thankyou.

Light034 commented 3 years ago

Thanks for your response, yes, the buttons do work when the module is loaded, here are the modules.ini for polybar and the script file that has the config. I'm pretty much using the default configuration shown in https://github.com/d093w1z/polybar-now-playing#setup--configuration, I haven't modified the script settings, here is the module inside my modules.ini file. Screenshot_2021-07-22-57_488x159

d093w1z commented 3 years ago

Could you check if this module is the one causing this error? And also give the output of the python script when run individually. Thanks

Light034 commented 3 years ago

Hi, I apologize for creating this issue, I added this script at the same time that I created a network module and it seems that I messed up something from the network module because when I disable it the error disappears. Thanks for creating this wonderful script!

d093w1z commented 3 years ago

Thanks for using this script.