You know... a couple of months back when you weren't around on the boards and there wasn't really any support to turn to, I took your script and started dissecting and manipulating it, changing and experimenting with it to get it to do what I wanted. When I had this exact same problem I started messing around and came up with a solution (hack). It worked for any error that had to do with characters, and with the "," Crosby, Stills, & Nash problem. All I did was add 1 " right before %s) and right after artistname= as shown below. Crosby, Stills, & Nash returned info, Motley Crue, Sinead O'Conner, All of them worked.
Note: I copied your script and modified "extendedinfo" and changed it to "concertinfo" in addon.xml so I could manipulate and experiment with it and not effect the original script, hence the "concertinfo"
I took this little bit of code below and added it to the "GetEvents" part of the code in OnlineMusicInfo.py as an extra line so that it ran artist biography script within itself when I ran the script to get near events. I got the near events and artist biography at once this way. I was experimenting with different sections of code and came up with this somehow.
PHP Code:
xbmc.executebuiltin('RunScript(script.concertinfo,info=artistdetails,artistname="%s)' % (artistname))
The only thing generated in the log file was this warning when I ran the script, notice Motley Crue, Crosby, Stills & Nash.
PHP Code:
12:32:16 T:6512 NOTICE: -->Python Interpreter Initialized<--
12:32:17 T:6724 WARNING: CUtil::SplitParams(script.concertinfo,info=artistdetails,artistname="Mötley Crüe) - end of string while searching for ) or "
12:32:17 T:4160 NOTICE: Thread LanguageInvoker start, auto delete: false
12:32:17 T:4160 NOTICE: Previous line repeats 1 times.
12:32:17 T:4160 NOTICE: -->Python Interpreter Initialized<--
13:18:29 T:6724 WARNING: CUtil::SplitParams(script.concertinfo,info=artistbio,artistname="Crosby, Stills & Nash) - end of string while searching for ) or "
I know you said you could hack it and make it work but it wasn't the way to fix it. I agree and not saying to hack it or anything I just thought this little snippet of info and what I did to make it work might add to try and figure out the reason it's happening. Cheers
[EDIT] oh yeah I did try to add the quote in the xml RunScript just to see if it worked but it didn't. It seemed it would only work when the one script was initiated from inside it's own script when running artist events.