Skip to content
Snippets Groups Projects
Commit 6af52eef authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't fail when abnshee don't return every info. Fixes #4492

parent 866abdbc
No related branches found
No related tags found
No related merge requests found
......@@ -164,10 +164,10 @@ class MusicTrackListener(gobject.GObject):
def _banshee_properties_extract(self, props):
info = MusicTrackInfo()
info.title = props['name']
info.album = props['album']
info.artist = props['artist']
info.duration = int(props['length'])
info.title = props.get('name', None)
info.album = props.get('album', None)
info.artist = props.get('artist', None)
info.duration = int(props.get('length', 0))
return info
def get_playing_track(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment