Aftonbladet RSS feed

@chrs , I changed the code a bit and the entity of both feeds are available again. But, now the “Auto News” feed cannot identify the right image and the HA.png is set. Unfortunately, I’m not a developer. Do you have an idea?

					# Check for the enclosure tag
                if "enclosures" in entry.keys():
                    enclosure = entry["enclosures"][0]  # Assuming only one enclosure
                    entry_value["image"] = enclosure.get("url", "")

                if not entry_value.get("image"):
                    # If there's no enclosure, check for image in summary
                    images = []
                    if "summary" in entry.keys():
                        images = re.findall(
                            r"<img.+?src=\"(.+?)\".+?>", entry["summary"]
                        )
                    if images:
                        entry_value["image"] = images[0]
                    else:
                        entry_value[
                            "image"
                        ] = "https://www.home-assistant.io/images/favicon-192x192-full.png"