After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 350994 - sanitise podcast feed names
sanitise podcast feed names
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: Podcast
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 406351 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-12 02:33 UTC by Jonathan Matthew
Modified: 2018-05-24 11:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to add escaping in rb-podcast-manager.c (3.28 KB, patch)
2006-12-03 13:00 UTC, Ingo Planz
none Details | Review
patch to replace control chars with spaces in rb-podcast-parse.c (2.02 KB, patch)
2006-12-03 13:01 UTC, Ingo Planz
none Details | Review
merged and updates (3.39 KB, patch)
2007-02-25 10:04 UTC, James "Doc" Livingston
none Details | Review

Description Jonathan Matthew 2006-08-12 02:33:33 UTC
We should strip annoying characters out of podcast feed names.  This feed has a newline in its name, which causes some UI weirdness and makes awkward directory names:

http://rss.mac.com/diplo1978/iWeb/mad decent radio/mad decent radio/rss.xml
Comment 1 Jonathan Matthew 2006-08-14 23:16:54 UTC
since I opened this bug, the feed has been moved to http://rss.mac.com/diplo1978/iWeb/mad%20decent%20radio%20worldwide/Podcast/rss.xml, and fixed so the title doesn't include a newline.
Comment 2 Ingo Planz 2006-11-29 15:12:12 UTC
(rb 0.9.6)

This feed has an url (thus a forward slash) in it's title. This results in a subfolder inside the folder where the episodes are stored. 

  http://feeds.feedburner.com/netzklang

Don't know if this may be a security issue, but it'd be better to have some escaping for the folder names.
Comment 3 Ingo Planz 2006-12-03 12:59:05 UTC
They are not particularly elegant (no real utf-8 handling), but the follwing two patches should 
 a) remove control chars from feed and episode titles and 
 b) do necessary escaping on file and folder names.
Comment 4 Ingo Planz 2006-12-03 13:00:32 UTC
Created attachment 77577 [details] [review]
patch to add escaping in rb-podcast-manager.c
Comment 5 Ingo Planz 2006-12-03 13:01:36 UTC
Created attachment 77578 [details] [review]
patch to replace control chars with spaces in rb-podcast-parse.c
Comment 6 Andrew Long 2007-01-13 17:47:33 UTC
re: #2

When the podcast titles have a forward slash, it also prevents rhythmbox from deleting the folder when all the episodes have been deleted.

I have this problem with the Rush 24/7 Podcast.  Here's the url: http://rss.premiereradio.net/podcast/rushlimb.xml (you can't get any episodes without a password.)
Comment 7 Alex Lancaster 2007-02-10 12:06:26 UTC
*** Bug 406351 has been marked as a duplicate of this bug. ***
Comment 8 James "Doc" Livingston 2007-02-25 10:04:58 UTC
Created attachment 83296 [details] [review]
merged and updates

Merged and updated to svn
Comment 9 Holger Leskien 2008-04-12 16:08:15 UTC
Podcast URL http://download.br-online.de/podcast/kalenderblatt/cast.xml adds a newline (?) to the podcast title and directory.
Comment 10 Bastien Nocera 2008-04-29 23:06:20 UTC
Pretty old bug. For what it's worth, I've fixed totem-pl-parser to remove new lines and spaces from titles. The patch probably needs to be updated to the current podcast parsing code though.
Comment 11 Christoph Dibak 2008-08-21 11:46:03 UTC
I've got Rhythmbox 0.11.5 which has still this bug.

/dev/radio Podcast at http://ulm.ccc.de/dev/radio/ creates a subfolder "dev".
Comment 12 GNOME Infrastructure Team 2018-05-24 11:45:42 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/224.