Fix Sonos radio metadata processing with missing data (#67141)

pull/67487/head
jjlawren 2022-02-23 17:42:18 -06:00 committed by Paulus Schoutsen
parent b0d043c55b
commit 3550a92629
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ class SonosMedia:
self.queue_size = int(queue_size)
if audio_source == MUSIC_SRC_RADIO:
self.channel = et_uri_md.title
if et_uri_md:
self.channel = et_uri_md.title
if ct_md and ct_md.radio_show:
radio_show = ct_md.radio_show.split(",")[0]