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

This commit is contained in:
jjlawren 2022-02-23 17:42:18 -06:00 committed by GitHub
parent 43b847220e
commit e3e962691c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]