Convert strings to lower case or it does not work
This commit is contained in:
parent
cf8415d228
commit
217b60a3c8
@ -54,7 +54,7 @@ class Spotify(IntervalModule):
|
|||||||
artist = player.get_artist()
|
artist = player.get_artist()
|
||||||
title = player.get_title()
|
title = player.get_title()
|
||||||
album = player.get_album()
|
album = player.get_album()
|
||||||
status = player.props.status
|
status = player.props.status.lower()
|
||||||
|
|
||||||
# stores the metadata and checks if it is valid
|
# stores the metadata and checks if it is valid
|
||||||
metadata = player.props.metadata
|
metadata = player.props.metadata
|
||||||
@ -70,7 +70,7 @@ class Spotify(IntervalModule):
|
|||||||
|
|
||||||
# returns a dictionary of all player data
|
# returns a dictionary of all player data
|
||||||
return {
|
return {
|
||||||
"status": self.status[status.lower()]
|
"status": self.status[status]
|
||||||
if status in self.status.keys() else "",
|
if status in self.status.keys() else "",
|
||||||
"title": title if title else "",
|
"title": title if title else "",
|
||||||
"album": album if album else "",
|
"album": album if album else "",
|
||||||
|
Loading…
Reference in New Issue
Block a user