Attach the channel code you already have so I can take a look at it.
In the mean time I'll answer what I can make of your questions:
1. XBMC has no problem with thumbnails having spaces in them. I would guess maybe there is a problem with the regular expresion? Only one way to be sure. Check the code.
2. That depends on the coding we are talking about. I'm gonna take a leap and guess the codes you refer to are the substitution codes for HTML code (like %20 for Space). There are some routines on the urllib library. urllib.unquote might be your solution.
Código: Seleccionar todo
Help on function unquote in module urllib:
unquote(s)
unquote('abc%20def') -> 'abc def'.
But it also might be any other coding. Python is quite good when it comes to managing code pages... again only one way to be sure. checking the code.
3. I don't understand your question here. What I'm sure is that any page content can't create syntax errors in python. Bad programs usually does. But again. I'll need the code.
Don't give up. It gets easier with time...
EDIT: I just understood the question 3. You mean the page has double quote ( " ) characters in the code. Well, that is not a problem. I'm guessing you have the problem when creating regular expresions and you need to match a character double quote ( " )... well. you have 2 options here:
1. You can scape any charanter in a python string with the character \ (backslash). That means that if I want to get the string abc"def you can simply do this:
2. In python you can indistinctively use single ( ' ) o double ( " ) quotes to create a string. So the avobe example can be coded:
As you can see in this example the double quote does not need to be escaped because the string is surrounded by single quotes.
Even better. You can use 3 quotes to create strings and then you can use both single and double quotes in your string without the need to escape any characters (you can even include end of line characters for that matter):
Código: Seleccionar todo
>>> mystring = """Now my string has both quotes ( ' ) and double quotes ( " )"""
>>> print mystring
Now my string has both quotes ( ' ) and double quotes ( " )
I hope this helps.
Personal P.S.: This was my 300 message in this forum. I guess this means I'm not a guest visitor anymore

PostData Personal: Este es mi mensaje 300 en este foro. Supongo que eso significa que ya no soy un simple visitante del foro...
