Publish empty cover topic if artUrl is not found in MQTT response

This commit is contained in:
Edgar P. Burkhart 2025-03-10 00:03:52 +01:00
parent bb397847ce
commit f61f7618bc
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -398,6 +398,7 @@ class HassUserClient(HassClient):
artUrl = re.compile(r"mpris:artUrl\s+file://(.*)").search(out)
if not artUrl:
self.publish(self.cover_topic, "")
return
art = artUrl.group(1)