[Bug]: ABS will pick up redundant spaces before or after podcast title from some RSS feed #3072

Open
opened 2026-04-25 00:13:26 +02:00 by adam · 0 comments
Owner

Originally created by @lamons on GitHub (Nov 4, 2025).

What happened?

When parsing some RSS feeds where the title is formatted as<title><![CDATA[ Actual Title 1 ]]></title>, ABS will treat the one space between CDATA's square brackets as part of the title, where they are not. E.g.

Image

What did you expect to happen?

The spaces not parsed as parts of the title.

Steps to reproduce the issue

An example feed that has the issue: https://asian-education.typlog.io/feed.xml
Where it's title is formatted in the feed as <title><![CDATA[ Asian Education Podcast ]]></title>, and parsed by ABS as Asian Education Podcast, where it should be Asian Education Podcast.

Audiobookshelf version

v2.29.0 and before

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

Additional Notes

I am not sure if adding padding spaces within CDATA tags is an correct, or acceptable format, or the host just shouldn't write the tags like this. Though I think it's pretty safe to assume no podcast title would add spaces before their first character or after their last character.

Originally created by @lamons on GitHub (Nov 4, 2025). ### What happened? When parsing some RSS feeds where the title is formatted as`<title><![CDATA[ Actual Title 1 ]]></title>`, ABS will treat the one space between CDATA's square brackets as part of the title, where they are not. E.g. <img width="1464" height="638" alt="Image" src="https://github.com/user-attachments/assets/75873fc6-af4b-4cd3-be16-d5ccd24f549d" /> ### What did you expect to happen? The spaces not parsed as parts of the title. ### Steps to reproduce the issue An example feed that has the issue: https://asian-education.typlog.io/feed.xml Where it's title is formatted in the feed as `<title><![CDATA[ Asian Education Podcast ]]></title>`, and parsed by ABS as ` Asian Education Podcast `, where it should be `Asian Education Podcast`. ### Audiobookshelf version v2.29.0 and before ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### Additional Notes I am not sure if adding padding spaces within CDATA tags is an correct, or acceptable format, or the host just shouldn't write the tags like this. Though I think it's pretty safe to assume no podcast title would add spaces before their first character or after their last character.
adam added the bug label 2026-04-25 00:13:26 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3072