problem with "/" in the title
Bug #603032 reported by
blech
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?
To post a comment you must log in.
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.getfilesyst emencoding( ). 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.