TOOLSP
"
WELCOME !

Please ! USE [CODE] tags for your LINKS and CODE.

Favor usar balisas [CODE] para sus vínculos y código.

Merci d'utiliser les balises [CODE] pour vos liens et code.


[code]http://Thank.you[/code]
"
*** Doc. Kodi & PYthon ***
.
.
Python & Modules PY
.
.
.
.
(Video) Cache Kodi
.
.
.
Addons Kodi
.
.
.
Addons Kodi
.
.
*** GITHUB ***
.
.
URLresolver (J.S.) [GIT] +
.
.
.
URLresolver (elD.) [GIT] -
.
.
URLresolver (tvA.) [GIT] -
.
.
.
.
Cloudflare (external) [GIT]
.
.
.
*** Associated ***
.
Pastebin Your list online
.
mediafire Upload Files
.
imgur Upload Pics
lyngsat TV logos collection
transparent .png
.
http://hola.org free? VPN
Hola.apk free? VPN App.
.
hidester- free Proxy
.
webgrabplus EPG - Eng
xmltv EPG - Fr
kazer EPG - Fr
.
.wordreference Traduction
.
mail.com (fast sign-in)
.
.
FRIENDS / PARTNERS

£$π community

créer un forum


Playing with " executebuiltin " in £$π

Go down

Playing with " executebuiltin " in £$π

Post by jujuuj on Fri 23 Nov - 4:12

executebuiltin is a function of Kodi you can call from £$π.

It allows you to do funny and sometimes useful things.

https://kodi.wiki/view/List_of_built-in_functions  
https://kodi.wiki/view/Special_protocol  
https://codedocs.xyz/xbmc/xbmc/group__python.html


Here comes some examples ...


Last edited by jujuuj on Fri 23 Nov - 4:29; edited 1 time in total
avatar
jujuuj

Messages : 233
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Playing with " executebuiltin " in £$π

Post by jujuuj on Fri 23 Nov - 4:20



EXAMPLES

Code:

 
 
  <item>
<title>EXEC : NOTIF</title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.Notification(HELLO,I  LOVE  YOU,5000)') 
]]></expres>
<NOTPlayable>True</NOTPlayable>
<page></page>
</regex>
</item>

xbmc.executebuiltin('Notification(%s, %s, %d, %s)'%(addonname, errorline2, time, infoicon))

 
 
 
 
<item>
<title>OK  Favourites  executebuiltin </title>
<link>https://www.tvaddons.ag/forums/$doregex[id]</link>
<regex>
<name>id</name>
<expres>$pyFunction:xbmc.executebuiltin('ActivateWindow(10134)')</expres>
<page></page>
<NOTPlayable>True</NOTPlayable>
</regex>
</item>

 


  <item>
<title>OK  system-settings  executebuiltin("ActivateWindow(systemsettings)")</title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin("ActivateWindow(systemsettings)")
]]></expres>
<page></page>
</regex>
</item>


 
  <item>
<title>OK  Kodi Home  executebuiltin("ActivateWindow(0)")</title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin("ActivateWindow(0)")
]]></expres>
<page></page>
</regex>
</item>




  <item>
<title>OK  Kodi Home  executebuiltin("ActivateWindow(Home)") /title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin("ActivateWindow(Home)")
]]></expres>
<page></page>
</regex>
</item>








avatar
jujuuj

Messages : 233
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Playing with " executebuiltin " in £$π

Post by jujuuj on Fri 23 Nov - 4:25



MORE :

Code:



  <item>
<title>SOUND interrupted after 20secs  </title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc, time
 xbmc.executebuiltin('PlayMedia("http://lyd.nrk.no/nrk_radio_p1_ostlandssendingen_mp3_h",1)')
 time.sleep( 20 )
]]></expres>
<page></page>
<NOTPlayable>True</NOTPlayable>
</regex>
</item>





  <item>
<title>SOUND. OK even if error because link='' (is empty) </title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('PlayMedia("http://lyd.nrk.no/nrk_radio_p1_ostlandssendingen_mp3_h",1)')
 return ''
]]></expres>
<page></page>
<NOTPlayable>True</NOTPlayable>
</regex>
</item>
... Note that : in that second item,  the $doregex should be in <title> instead of <link> ...


option  ,1
option notplayable
are useful !

more options : repeatall and random (if local playlist of musics)

THIS works for sounds , and/or ... slideshows

U can use this in item, xml

or put it in autoexec.py    if you want "this" to play when opening kodi.



Last edited by jujuuj on Fri 23 Nov - 4:47; edited 4 times in total
avatar
jujuuj

Messages : 233
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Playing with " executebuiltin " in £$π

Post by jujuuj on Fri 23 Nov - 4:27


ONLY FOR ANDROID :

Code:


<item>
<title> executebuiltin SHOW Android appS  </title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('ActivateWindow(10001,"androidapp://sources/apps/",return)')
]]></expres>
<page></page>
</regex>
</item>
 
  this first item should (*) open a list of your apps, so you can "add to favourites" any link to app, in order to know (opening the favs file) what is the precise name of the app to put after StartAndroidActivity("

 (* Tested and working on skin titan)
 
<item>
<title>Android : APK  Acestream.engine  (org.acestream.media.atv)</title>
<link>$doregex[android]</link>
<regex>
<name>android</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.StartAndroidActivity("org.acestream.media.atv")')
 #return ''
]]></expres>
<page></page>
</regex>
</item>

 
 
 
 
 
<item>
<title>Android : APK  File.Explorer.wifi.PRO  (APTOIDE)  "com.sandalgroup.fileexplorerwifipro"</title>
<link>$doregex[android]</link>
<regex>
<name>android</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.StartAndroidActivity("com.sandalgroup.fileexplorerwifipro")')
 #return ''
]]></expres>
<page></page>
</regex>
</item>
 
 
 
 
 
<item>
<title>Android : APK  WiFi.File.Explorer  </title>
<link>$doregex[android]</link>
<regex>
<name>android</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.StartAndroidActivity("com.dooblou.WiFiFileExplorer")')
 #return ''
]]></expres>
<page></page>
</regex>
</item>

 
 
 
 

<item>
<title>Android : APK  Smart.Youtube.tv  (APTOIDE)  </title>
<link>$doregex[android]</link>
<regex>
<name>android</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.StartAndroidActivity("com.firsthash.smartyoutubetv2")')
 #return ''
]]></expres>
<page></page>
</regex>
</item>






<item>
<title>Android : APK  Youtube.tv</title>
<link>$doregex[android]</link>
<regex>
<name>android</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.StartAndroidActivity("com.google.android.youtube.tv")')
 #return ''
]]></expres>
<page></page>
</regex>
</item>




 
 
 
 
  <item>
<title> executebuiltin('fbox.replay  </title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('StartAndroidActivity("fr.freebox.catchupstore")')
]]></expres><page></page></regex></item>
 
 

 
 
 
 
  <item>
<title> executebuiltin('fbox.tv  </title>
<link>$doregex[exebuilt]</link>
<regex>
<name>exebuilt</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('StartAndroidActivity("fr.freebox.tv")')
]]></expres><page></page></regex></item>

 
 


<item>
<title>Android : APK  Tele.7.jours</title>
<link>$doregex[android]</link>
<regex>
<name>android</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.StartAndroidActivity("com.ldf.tele7.view")')
 #return ''
]]></expres>
<page></page>
</regex>
</item>






  <item>
<title>Android : APK  "lex Web.browser"</title>
<link>$doregex[android]</link>
<regex>
<name>android</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.StartAndroidActivity("lex.com.webbrowser")')
  ]]></expres>
<page></page>
</regex>
</item>
avatar
jujuuj

Messages : 233
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Playing with " executebuiltin " in £$π

Post by jujuuj on Fri 23 Nov - 4:28


It opens new possibilities ... Right ?

Please, SHARE YOUR IDEAS !
avatar
jujuuj

Messages : 233
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Playing with " executebuiltin " in £$π

Post by jujuuj on Fri 23 Nov - 4:55



lien £$π
xbmc.executebuiltin('ActivateWindow(10502,"plugin://plugin.video.live.streamspro/?



lien F4µ
xbmc.executebuiltin('PlayMedia("plugin://plugin.video.live.streamspro/?url=plugin%3A%2F%2Fplugin.video.f4mTester%2F%3

avatar
jujuuj

Messages : 233
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Playing with " executebuiltin " in £$π

Post by jujuuj on Fri 23 Nov - 15:18


Played History of Addon Plexus  (Acestreams)

Code:

<item>  <title>  OPEN   PLEXUS HISTORY  PLAYED ACESTREAMS) </title>
<link>$doregex[plex]</link>
<regex>
<name>plex</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import xbmc
 xbmc.executebuiltin('XBMC.ActivateWindow(10001,"plugin://program.plexus/?iconimage=%2fstorage%2femulated%2f0%2fAndroid%2fdata%2forg.xbmc.kodi%2ffiles%2f.kodi%2faddons%2fprogram.plexus%2fresources%2fart%2fhistory.png&mode=8&name=%5bB%5dPlayed%20history%5b%2fB%5d&url=https%3a%2f%2fcode.google.com%2fp%2fp2p-strm%2f",return)')
]]></expres>
<page></page>
</regex>
</item>

u can erase or adapt the " ?iconimage" part ...

avatar
jujuuj

Messages : 233
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Playing with " executebuiltin " in £$π

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum