problem with "/" in the title

Bug #603032 reported by blech
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arte +7 recorder
New
Undecided
Unassigned

Bug Description

When the title looks like

The Killing (14/20)

it will not download, I get the message: "there are problem with your internet connection"

Perhaps it is possible to rewrite the title before downloading?

Revision history for this message
morsch (moritz-schallaboeck) wrote :

I can confirm this bug. It also affects various other special characters, including the German umlaut characters (äöü). I think about 10% to 20% of the currently available titles won't download because of the bug. I will attach a one-line patch that solves the problem for me.

Interacting with files directly within Python automatically escapes invalid chars, however, since the filename is passed to flvstreamer, it needs to be encoded explicitly. The most correct solution seems to be to use String's encode function with the return value of sys.getfilesystemencoding(). This changes "(14/20)" to (14-20)" on my maverick install. Unfortunately, the encode function does not deal with umlauts properly. However, this might be due to my system being US-English, it might work better for other people. On my system, "Küsten" is encoded as "Ksten", which isn't perfect, but a whole lot better than not downloading at all.

Revision history for this message
VinsS (vincent-vandevyvre) wrote :

Patch applied to the Qt branch rev. 11

Tanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.