Only convert clementine title and album if they are true
It appears that at least album may be None. Fixes #1207
This commit is contained in:
parent
16ffd10672
commit
d061deb7e5
|
@ -237,10 +237,14 @@ else:
|
||||||
return
|
return
|
||||||
if not info:
|
if not info:
|
||||||
return
|
return
|
||||||
album = out_u(info.get('xesam:album'))
|
album = info.get('xesam:album')
|
||||||
title = out_u(info.get('xesam:title'))
|
title = info.get('xesam:title')
|
||||||
artist = info.get('xesam:artist')
|
artist = info.get('xesam:artist')
|
||||||
state = _convert_state(status)
|
state = _convert_state(status)
|
||||||
|
if album:
|
||||||
|
album = out_u(album)
|
||||||
|
if title:
|
||||||
|
title = out_u(title)
|
||||||
if artist:
|
if artist:
|
||||||
artist = out_u(artist[0])
|
artist = out_u(artist[0])
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue