Why does this script freeze XBMC

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
elupus Offline
Team-XBMC Developer
Posts: 3,764
Joined: Mar 2004
Reputation: 2
Post: #11
could you post what you added in your startup.xml?

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: badge.gif]
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #12
sure http://pastebin.com/XA7q5F0i full file

diff http://pastebin.com/D88V9bpd

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2010-05-22 02:39 by Nuka1195.)
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,764
Joined: Mar 2004
Reputation: 2
Post: #13
Eh.. that caused all sort of mayhem for me (not python related it seems).

<edit>It helps to put it in the right file

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: badge.gif]
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,764
Joined: Mar 2004
Reputation: 2
Post: #14
Okey, after going through hell and back I managed to fix it.

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: badge.gif]
find quote
dennis Offline
Junior Member
Posts: 7
Joined: Jun 2004
Reputation: 0
Post: #15
oh, nice.

So I just check if xbmc.abortRequested is true then I'll quit my script?

PHP Code:
import sys 

if xbmc.abortRequested == true:
    
sys.exit() 
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,764
Joined: Mar 2004
Reputation: 2
Post: #16
Yup

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: badge.gif]
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #17
the script start from startup.xml works good now, thanks.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #18
Hey, Nuka1195 why do you already start those scripts in startup.xml ?

Does it speed up loading home.xml ?

I run a animated image in MM Waffa! startup and would be nice if those scripts start while you see the animation and have them ready in homescreen so it would take less time to load Home.xml.

Recently added is always the last that pops up and takes some time (extra).
(This post was last modified: 2010-05-23 17:52 by Waffa.)
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #19
OT:

i run it from there to start because i don't like running it everytime i enter home.

advantages:
it only runs every half an hour and doesn't run everytime you enter home.

disadvantages:
if you watch a movie then it may still appear in your recently added until the script is scheduled to run. plus if you update database it won't update until the script is run.

the update can be handled by running the script after a scan, from the scanning dialog. i think ronnie or someone came up with that.

not sure what the best way to do it, other than a new feature to xbmc, that can run commands based on an event.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #20
TY !

Going to play with it Smile
find quote