File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
setup (
6
6
name = "spotibar" ,
7
7
description = "Spotify plugin for Polybar" ,
8
- version = "0.4 .0" ,
8
+ version = "0.5 .0" ,
9
9
url = "https://github.com/conor-f/spotibar" ,
10
10
python_requires = ">=3.6" ,
11
11
packages = find_packages ("src" ),
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ def is_playing(self):
272
272
"""
273
273
Returns True if dbus thinks we are currently playing Spotify locally, False otherwise.
274
274
"""
275
- cmd = "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus'|egrep - A 1 \" string\" |cut -b 26-|cut -d '\" ' -f 1|egrep -v ^$"
275
+ cmd = "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus'| grep -E - A 1 \" string\" |cut -b 26-|cut -d '\" ' -f 1| grep -E -v ^$"
276
276
try :
277
277
if subprocess .check_output (cmd , shell = True , text = True ).strip () == "Playing" :
278
278
self .config .set ("last_playing_timestamp" , self .get_simple_timestamp ())
You can’t perform that action at this time.
0 commit comments