[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
#26
sorry for the numerous posts, just really excited about this addon... apparently xbmc doesn't like any special characters in the filename so i did a little more editing to remove more. i'm not a python scripter so this is probably sloppy and could be done better...

Code:
filename = "S"+seasonNr+"E"+episodeNr+" - "+episodeTitle+".strm"
        [b]chars = '[\n\t\r\"?\'!@#$%^&*]'
    filename = re.sub(chars, '', filename)[/b]

then i ran into a character encoding issue (over the character é) and realized that there are an endless amount of characters that could cause this line of code to fail. since xbmc only needs the TV show name and episode number, i just cut out the part that adds the episode title to the filename. this is working for me. there is probably a better way of doing this.

Code:
filename = "S"+seasonNr+"E"+episodeNr+".strm"
Reply


Messages In This Thread
RE: [RELEASE] NetfliXBMC - Inofficial Netflix Add-on (Win/OSX/Linux) - by bradwatson - 2013-11-28, 01:26
Search empty? - by cgrey - 2014-01-11, 06:13
Not working on windows 7 - by dandiodati - 2014-02-26, 21:55
Problems with this addon - by builderjer - 2014-11-30, 19:55
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)7