Posts: 49
Joined: Aug 2013
Reputation:
0
Sorry, it still small letter
Posts: 5
Joined: Jul 2014
Reputation:
0
Hi' I'm having the same issue with the following command. When I attempt to execute the following command:
xbmc.RunAddon(plugin://plugin.video.movie25/?url=rtmp%3A%2F%2F31.220.0.133%3A1935%2Flive+playpath%3Deuro1x+swfUrl%3Dhttp%3A%2F%2Fwww.flashtv.co%2FePlayerr.swf+pageUrl%3Dhttp%3A%2F%2Fwww.flashtv.co%2Fembed.php%3Flive%3Deuro1x%26vw%3D620%26vh%3D490+token%3D%25ZZri%28nKa%40%23Z&mode=183&name=Eurosport++UK&iconimage=http://www.lyngsat-logo.com/hires/ee/eurosport.png&&plot=&fanart=https%3a%2f%2fraw.github.com%2fmash2k3%2fmashupk1m05%2fmaster%2fk1m05.images%2fwallpaper.jpg&genre=)
the resulting log file shows:
RunScriptWithParams - calling plugin Mash Up('plugin://plugin.video.movie25/','-1','?url=rtmp%3a%2f%2f31.220.0.133%3a1935%2flive+playpath%3deuro1x+swfurl%3dhttp%3a%2f%2fwww.flashtv.co%2feplayerr.swf+pageurl%3dhttp%3a%2f%2fwww.flashtv.co%2fembed.php%3flive%3deuro1x%26vw%3d620%26vh%3d490+token%3d%25zzri%28nka%40%23z&mode=183&name=eurosport++uk&iconimage=http://www.lyngsat-logo.com/hires/ee/eurosport.png&&plot=&fanart=https%3a%2f%2fraw.github.com%2fmash2k3%2fmashupk1m05%2fmaster%2fk1m05.images%2fwallpaper.jpg&genre=')
You will notice that the token value has been changed from token%3D%25ZZri%28nKa%40%23Z to token%3d%25zzri%28nka%40%23z which prohibits the video from playing.
Any idea why the xbmc.RunAddon command would convert strings to lower case?
Posts: 5
Joined: Jul 2014
Reputation:
0
Starting XBMC (13.1-BETA2 Git:20140519-721e95f). Platform: ARM Linux 32-bit
Using Release XBMC x32 build, compiled May 23 2014 by GCC 4.7.1 for ARM Linux 32-bit 3.2.21
Running on Linux 32-bit (Raspbian GNU/Linux 7 (wheezy), 3.12.20 armv6l)
Host CPU: ARMv6-compatible processor rev 7 (v6l), 1 core available
I tried both RunPlugin, RunAddon, and RunScript
Posts: 26,215
Joined: Oct 2003
Reputation:
187
And exactly what code did you call (i.e. what invoked the RunScriptWithParams ?)
Posts: 5
Joined: Jul 2014
Reputation:
0
the following line of code made the call: xbmc.executebuiltin('XBMC.RunPlugin(%s)' % url)
url = plugin://plugin.video.movie25/?url=rtmp%3A%2F%2F31.220.0.133%3A1935%2Flive+playpath%3Deuro1x+swfUrl%3Dhttp%3A%2F%2Fwww.flashtv.co%2FePlayerr.swf+pageUrl%3Dhttp%3A%2F%2Fwww.flashtv.co%2Fembed.php%3Flive%3Deuro1x%26vw%3D620%26vh%3D490+token%3D%25ZZri%28nKa%40%23Z&mode=183&name=Eurosport++UK&iconimage=http://www.lyngsat-logo.com/hires/ee/eurosport.png&&plot=&fanart=https%3a%2f%2fraw.github.com%2fmash2k3%2fmashupk1m05%2fmaster%2fk1m05.images%2fwallpaper.jpg&genre=
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Notice that the iconimage URL option isn't URL encoded. Thus, XBMC detects a URL, and the hostname portion of the URL is case-insensitive, thus lower-cased. This just happens to be your entire URL up to the iconimage bit, which is the bit you don't want to be lower-cased.
Fix that and all will be well.
In the meantime, I'll see if I can make this bit of the code a bit more robust - it's very obviously doing something it shouldn't be, but fixing it could be tricky.
Jonathan
Posts: 5
Joined: Jul 2014
Reputation:
0
Jonathan, outstanding. as you said problem resolved. I think I found a new xbmc hero. :-) Thank you very much for quick response, help, and fix.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You're most welcome.
* jmarshall brandishes laptop in swashbuckling manner...