PEP 8 (I'm bored): now_playing

This commit is contained in:
enkore 2014-10-14 16:41:06 +02:00
parent 45e0a13cf5
commit 1d46cde704

View File

@ -94,11 +94,11 @@ class NowPlaying(IntervalModule):
"pos": 0, "pos": 0,
"volume": int(get_prop("Volume") * 100), "volume": int(get_prop("Volume") * 100),
"title":currentsong.get("xesam:title", ""), "title": currentsong.get("xesam:title", ""),
"album": currentsong.get("xesam:album", ""), "album": currentsong.get("xesam:album", ""),
"artist": ", ".join(currentsong.get("xesam:artist", "")), "artist": ", ".join(currentsong.get("xesam:artist", "")),
"song_length": TimeWrapper((currentsong.get("mpris:length") or 0) / 1000**2), "song_length": TimeWrapper((currentsong.get("mpris:length") or 0) / 1000 ** 2),
"song_elapsed": TimeWrapper((get_prop("Position") or 0) / 1000**2), "song_elapsed": TimeWrapper((get_prop("Position") or 0) / 1000 ** 2),
"filename": "", "filename": "",
} }