Page 1 of 1

Kodi plugin

Posted: Mon May 18, 2015 5:46 pm
by expandables
Hi is it possible to execute a kodi python script without running kodi?

Re: Kodi plugin

Posted: Mon May 18, 2015 8:47 pm
by DougieLawson
I'd guess it depends whether the python script uses a Kodi API or not.

Re: Kodi plugin

Posted: Mon May 18, 2015 10:23 pm
by elParaguayo
expandables wrote:Hi is it possible to execute a kodi python script without running kodi?
What script do you want to run? As Dougie says, kodi scripts are likely to use the kodi/xbmc modules.

Re: Kodi plugin

Posted: Tue May 19, 2015 12:13 am
by expandables
I want to use a script from "sportdevil" plugin addon. It captures and play videos from different websites.
The script looks like this its a cfg file but what i really want to do is to use the script to get a token from the video website any help is appreciated thanks

Code: Select all

#item_info_name=title
#item_info_from=@PARAM1@
#item_info_build=iLive - %s

item_info_name=pageUrl
item_info_from=@PARAM1@
item_info_build=http://www.streamlive.to/embedplayer.php?width=640&height=400&channel=%s&autoplay=true

item_info_name=req
item_info_from=pageUrl
item_info_convert=getInfo('%s','.getJSON("([^'"]+)".streamer[:,]\s'"['"].file[:,]\s*'".flv['"]','@REFERER@','server|rtmp.tmp|file')
item_info_build=%s

item_info_name=token
item_info_from=http:' + server
item_info_convert=getInfo('%s','.?token":"([^'"]+).','http://www.streamlive.to/embedplayer.php')
item_info_build=%s

item_info_name=rtmp
item_info_from=rtmp.tmp
item_info_convert=replace('%s','\','')
#item_info_convert=replace('%s','watch1','watch3')
item_info_build=%s

item_info_name=app
item_info_from=rtmp
item_info_convert=parseText('%s','..rtmp://[.\w:]*/([^\s]+)')
item_info_build=%s

item_info_name=url
item_info_from=rtmp + ' app=' + app + ' playpath=' + file + ' swfUrl=http://www.streamlive.to/player/player_ilive_embed.swf live=1 timeout=15 token=' + token + ' swfVfy=1 pageUrl=http://www.streamlive.to
item_info_build=%s

Re: Kodi plugin

Posted: Tue May 19, 2015 12:17 am
by expandables
To get the token it shows something like this in the website source file.

Code: Select all

var token="";
		$.getJSON("http://www.streamlive.to/server.php?id=1431994548", function(json){
		token= json.token;
		setStream(token);

Re: Kodi plugin

Posted: Tue May 19, 2015 5:56 am
by elParaguayo
I'm sorry but I'm not going to help on this as that's one of the banned add-ons on Kodi.

Re: Kodi plugin

Posted: Tue May 19, 2015 7:07 am
by DougieLawson
elParaguayo wrote:I'm sorry but I'm not going to help on this as that's one of the banned add-ons on Kodi.
Ditto.

Also it is NOT python.