
that's your topic that make me remember this and make me wrote it, to thanck to you too !
ppic
Skilled Python Coder Joined: Feb 2009 Reputation: 10 Location: France idf |
2010-01-11 01:31
Post: #21
yep, will be implemented in next version
![]() that's your topic that make me remember this and make me wrote it, to thanck to you too ! Passion-XBMC Repository Download your SVN skins and addons TvTunes Addon Download Play your theme while browsing library TVshow Next Aired display next aired infos from tvrage.com Logo Downloader Script download Logo/clearart/show thumbs/poster/banner Bande-Annonce Allociné plugin watch trailers in french and vo SportLive Script Live score match info in XBMC (not compatible dharma) |
| find quote |
brulsmurf
Member Posts: 94 Joined: Oct 2008 Reputation: 0 |
2010-01-25 11:03
Post: #22
Alright, I should have seen this coming, but ...
When I exit XBMC without aborting my script first (which works flawlessly now - thanks again ppic for the suggestion), the pid file is not deleted. So when I then restart XBMC and restart the script, it says it is already running and asks me if I want to abort it. Any thoughts on how to get around this, anyone? |
| find quote |
stanley87
Skilled Python Coder Joined: Sep 2006 Reputation: 2 Location: Chch, New Zealand |
2010-01-26 01:28
Post: #23
I had the exact same problem when i was doing my Xinbox script back in the day.
I tried looking for a "temp" xbmc folder where I could store my "pid" file. A folder XBMC wipes when it starts up etc. This would delete your "pid" file and you wouldn't have the script think its running. I could never find this so I ended up making my script install/modify the autoexec.py script adding a line to delete the "pid" if exsisits. so, as soon as XBMC is run. Autoexec.py is executed and deletes the "pid" if it is present. Give that a go. |
| find quote |
stanley87
Skilled Python Coder Joined: Sep 2006 Reputation: 2 Location: Chch, New Zealand |
2010-01-26 01:30
Post: #24
BTW: I had the same problem you had and this basically made me give up scripting Xinbox.
the deleting the "pid" file would always cause big memory errors back in the day. It sounds like this problem has been fixed so I might have to get back into it
|
| find quote |
brulsmurf
Member Posts: 94 Joined: Oct 2008 Reputation: 0 |
2010-01-26 09:17
Post: #25
stanley87 Wrote:so, as soon as XBMC is run. Autoexec.py is executed and deletes the "pid" if it is present. Thanks! Sounds like a nice workaround. I never knew of the autoexec.py feature Ideally though, I would prefer a solution that does not require the user to modify a script by hand. After all, since the autoexec.py file is not located in my script's folder but in the main folder instead (and may contain other user-specific modifications), I cannot distribute it with my script.
|
| find quote |
stanley87
Skilled Python Coder Joined: Sep 2006 Reputation: 2 Location: Chch, New Zealand |
2010-01-26 23:28
Post: #26
Hi Again,
if you search through my posts. You will find one for a good bit of python code to either create an autoexec.py or modify an exciting one. It just adds your specific line to the file etc. So, it does not change what is already there. EDIT: HERE IT IS: http://forum.xbmc.org/showthread.php?tid=29378
(This post was last modified: 2010-01-26 23:33 by stanley87.)
|
| find quote |
brulsmurf
Member Posts: 94 Joined: Oct 2008 Reputation: 0 |
2010-01-27 21:32
Post: #27
Ooh - I like it! I may very well use this approach in the near future. For now though, I will release the first version of my script first. I'm just too anxious to see if anyone is interested in it at all
|
| find quote |