Convert strings to lower case or it does not work

This commit is contained in:
Thiago Kenji Okada 2016-10-19 13:45:23 -02:00
parent cf8415d228
commit 217b60a3c8

View File

@ -54,7 +54,7 @@ class Spotify(IntervalModule):
artist = player.get_artist()
title = player.get_title()
album = player.get_album()
status = player.props.status
status = player.props.status.lower()
# stores the metadata and checks if it is valid
metadata = player.props.metadata
@ -70,7 +70,7 @@ class Spotify(IntervalModule):
# returns a dictionary of all player data
return {
"status": self.status[status.lower()]
"status": self.status[status]
if status in self.status.keys() else "",
"title": title if title else "",
"album": album if album else "",