2012-11-23, 21:50
The commit is just crazy IMHO . The issues others have had with unicode characters is probably due to unquote_plus inability to manage this properly.
I've been using below for ages without any issues what so ever...
I've been using below for ages without any issues what so ever...
PHP Code:
# FROM plugin.video.youtube.beta -- converts the request url passed on by xbmc to our plugin into a dict
def get_parameters(parameterString):
commands = {}
splitCommands = parameterString[parameterString.find('?')+1:].split('&')
for command in splitCommands:
if (len(command) > 0):
splitCommand = command.split('=')
name = splitCommand[0]
value = splitCommand[1]
commands[name] = value
return commands