[rss] mxml doesn't return title if it has CDATA
hacketiwack opened this issue · 3 comments
Currently, the metadata of a podcast seems to be taken from the individual files linked to each podcast episode.
RSS feeds for podcasts provide, indeed, a tag enclosure
, which has an attribute url
pointing to the aforementioned file.
Even if this seems legitimate to read information from this file, it appears, however, that some podcasters don't tag their episodes and therefore, taking the information from the feed would be more advisable in this situation.
This results in quite ugly displays in the web interface (example below).
An example of such a podcast feed is this one.
This work item is not 100% an issue, it is more an unsightliness.
It looks like the cause is that this RSS has CDATA in the title, which for some reason makes the xml parser library unable to read the tag:
<title><![CDATA[013. Q&A - Qu'est-ce qui relève de ma personnalité vs ce que je peux changer? ]]></title>
Not sure if it is a bug in the library or if owntone should be calling it differently. Or if it is invalid xml.