Kodi Community Forum

Full Version: Addons Loading Ordering
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

I am working on some add-on, that is the xmbc.service and it has it's own web-server (http://localhost:12067/).
I want to use this web-server for XBMC IPTV Simple Add-on (https://github.com/afedchin/xbmc-addon-iptvsimple) to pass IPTV *.xml and EPG *.xml not like files, but as link to local web-server http://localhost:12067/ of my plugin.

The main problem now is that my plugin loading later than XBMC IPTV Simple Add-on and you can see that from log:
Code:
13:39:09.250 T:547567046656  NOTICE: PVRManager - starting up
13:39:09.257 T:547843573248  NOTICE: initialize done
13:39:09.258 T:547843573248  NOTICE: Running the application...
13:39:09.422 T:547843584768   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
13:39:09.422 T:547843584768   ERROR: CCurlFile::Open failed with code 0 for http://localhost:12067/plist.m3u
13:39:09.423 T:547843584768   ERROR: Open - failed to open source <http://localhost:12067/plist.m3u>
13:39:09.424 T:547843584768   ERROR: AddOnLog: PVR IPTV Simple Client: Unable to load playlist file 'http://localhost:12067/plist.m3u':  file is missing or empty.
13:39:10.228 T:547843573248  NOTICE: WebServer: Started the webserver
13:39:10.235 T:547542630656  NOTICE: ES: Starting UDP Event server on 127.0.0.1:9777
13:39:10.238 T:547542630656  NOTICE: UDP: Listening on port 9777
13:39:10.320 T:547567046656  NOTICE: Start - EPG thread started
13:39:15.604 T:547545967104  NOTICE: (C) MyServer v4.0.4, 2015-2017
                                            Sun May  7 13:39:15 2017
                                            Start on localhost:12067
13:39:20.476 T:547542686720  NOTICE: PVRManager - stopping
13:39:21.573 T:547843573248  NOTICE: Storing total System Uptime
13:39:21.574 T:547843573248  NOTICE: Saving settings
13:39:21.605 T:547843573248  NOTICE: stop all
13:39:22.738 T:547542681344  NOTICE: Updated of TV programs
How can I load my service plugin before XBMC IPTV Simple Add-on?

Thank you!
You can use this xbmc.service:
http://kodi.wiki/view/Service_add-ons

or autoexec.py

to load your service daemon.
(2017-05-09, 16:08)learningit Wrote: [ -> ]You can use this xbmc.service:
http://kodi.wiki/view/Service_add-ons

or autoexec.py

to load your service daemon.

My plugin is already service... Please, read my post again. Thank you!