jvanrhijn / polybar-spotify Goto Github PK
View Code? Open in Web Editor NEW🎶 Spotify artist and song module for Polybar
License: MIT License
🎶 Spotify artist and song module for Polybar
License: MIT License
Hi!
so, I downloaded and installed the script the way it was described in the README.
but when I finish configuring it gives an error
"Traceback (most recent call last)
"
then I tried to run it through the terminal... the error appeared completely.
[Gho0st@archlinux scripts]$ python spotify_status.py
Traceback (most recent call last):
File "/home/Gho0st/.config/polybar/scripts/spotify_status.py", line 4, in <module>
import dbus
ModuleNotFoundError: No module named 'dbus'
I installed dbus with :
sudo pacman -S dbus
but it keeps giving the error... can you help me?
Wondering whether or not it would be possible to have additional text in the song title depending on whether the player is Playing or Paused? I'd fork and make an attempt myself, but I really don't know what I'm doing.
is there any ways to make this work with spotifyd?
It's not really truncating the whole message, just the song.
Reading the description in the README, this sounds like a feature, but just wanted to make sure.
Been using the lovely script for a while now with no problems until I switched to Void today and found out that it doesn't work. I have python, python3 and python-dbus installed. When I didn't have a python_status.py, polybar would whine about how the file doesn't exist but when I do make one, although the error disappears from the bar, doesn't show anything when I have a song playing when using Spotify. The script has always worked when on Arch so it may be something about Void...
Edit: I've changed to and tried the default settings suggested on this git page as well to no avail.
The scripts works fine, displays artists and songnames, but when I open up Spotify on my computer running the bar, and then start playing Spotify on a different computer while still having spotify open on the polybar computer, I dont find the artist or songname anymore. As soon as I switch audio back to my host computer it displays again.
For several months now I have been using this script with no issues, up until switching distros (now running Pop!_OS 20.10), and now I'm getting output saying "Traceback (most recent call last):
", instead of showing whether or not any music is playing.
So far I have installed the package python3-dbus
, as well as python3 itself and rebooted to no avail. I also tried installing python-dbus
, however the package does not seem to be available.
Something tells me that I must be missing some sort of package, and I can't help but worry I need that specific python-dbus
package.
Any help would be greatly appreciated!
Title says it all. It just doesnt appear, running the script manually doesnt give any output.
The hex on format underline doesn't seem to show up on the bar.
'ascii' codec can't encode character u'\u25b6' in position 0: ordinal not in range(128)
Probably something with the charset and easy to fix :)
I have it set up to listen for spotifyd and have changed the script accordingly, however if i don't immediately open up spotify-tui and start playing something, I get an error that takes up the entire bar. It's just a dbus exception because it hasn't received a reply. If I start playing a song the error is replaced with the correct output, but is there some way that I can just disable the printing of this error entirely?
Traceback (most recent call last):
File "/home/username/.config/polybar/scripts/spotify_status.py", line 70, in
session_bus = dbus.SessionBus()
AttributeError: module 'dbus' has no attribute 'SessionBus'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/username/.config/polybar/scripts/spotify_status.py", line 119, in
if isinstance(e, dbus.exceptions.DBusException):
AttributeError: module 'dbus' has no attribute 'exceptions'
Title says it. Python version is 3.7. WM is i3-gaps.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.