Fix authorisation

JC,

I've tweaked your code slightly - explanation is on the forum: http://forum.xbmc.org/showthread.php?tid=176672&pid=1671377#pid1671377

el_P