What is problem in xbmc.runplugin?
#1
Code:
def addLink(name,url,iconimage,detail):
        u=url
        ok=True
        liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        liz.setInfo( type="Video", infoLabels={ "Title": name , "Plot" : detail } )
        liz.setProperty('IsPlayable', 'true')
        liz.addContextMenuItems([('Add to My Favorite','xbmc.RunPlugin(%s?mode=12&name=%s&url=%s&iconimage=%s)'%(sys.argv[0],name,url,iconimage))])
        ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz)
        return ok

Result
Code:
print(name,url,iconimage)

21:47:50 T:9424  NOTICE: ('ironman4', 'http://sit-edu4.sit.kmutt.ac.th/csc498/53270304/project/xbmc/video/action/ironman4-by-dome-230298903.mp4', 'http://sit-edu4.sit.kmutt.ac.th/csc498/53270304/Project/XBMC/video/TitleVideoPic/IronMan4-PicVideo-230298903.jpg', 'asdasd')

The problem is you can see the different link in "url" and "iconimage". In url link it make all into small letter ? Why?
Reply
#2
After use of addDirectoryItem, usually, you must call

Code:
xbmcplugin.endOfDirectory(handle=int(sys.argv[1])
Reply
#3
Sorry, it still small letter
Reply
#4
(2013-09-26, 19:04)directer Wrote: The problem is you can see the different link in "url" and "iconimage". In url link it make all into small letter ? Why?

Does it really matter? URLs are not case-sensitive.
Reply
#5
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?
Reply
#6
Debug Log - by the looks this is something other than Gotham, or are you using RunPlugin() rather than RunAddon() ?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
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
Reply
#8
So please grab a Debug Log - I can't guess exactly what you're doing Smile
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#9
http://paste.debian.net/hidden/a532457c/
Reply
#10
And exactly what code did you call (i.e. what invoked the RunScriptWithParams ?)
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#11
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=
Reply
#12
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
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#13
Here's the fix on the XBMC side. Note you should fix your plugin either way - options must be URL encoded Smile

https://github.com/xbmc/xbmc/pull/5020
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#14
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.
Reply
#15
You're most welcome.

* jmarshall brandishes laptop in swashbuckling manner...
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
What is problem in xbmc.runplugin?0