User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Kodi plugin

Mon May 18, 2015 5:46 pm

Hi is it possible to execute a kodi python script without running kodi?
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Kodi plugin

Mon May 18, 2015 8:47 pm

I'd guess it depends whether the python script uses a Kodi API or not.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: Kodi plugin

Mon May 18, 2015 10:23 pm

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.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Kodi plugin

Tue May 19, 2015 12:13 am

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
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Kodi plugin

Tue May 19, 2015 12:17 am

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);
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: Kodi plugin

Tue May 19, 2015 5:56 am

I'm sorry but I'm not going to help on this as that's one of the banned add-ons on Kodi.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Kodi plugin

Tue May 19, 2015 7:07 am

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Python”