Fixed error with MPRIS when no song is playing

This commit is contained in:
Sumner Evans
2019-10-27 19:54:04 -06:00
parent a860847f51
commit 8911d8886b

View File

@@ -325,7 +325,7 @@ class DBusManager:
track_list = changed_props['Tracks']
current_track = (
new_property_dict['org.mpris.MediaPlayer2.Player']
['Metadata']['mpris:trackid'])
['Metadata'].get('mpris:trackid', ''))
self.connection.emit_signal(
None,
'/org/mpris/MediaPlayer2',