2013-11-28, 01: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...
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+" - "+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"