Posts: 16
Joined: May 2010
Reputation:
0
minel
Junior Member
Posts: 16
MacMini running the latest build of XBMC and although "Scan for Library in background" is selected, I'm not sure it works.
I want to run the MacMini in the living room to automatically refresh every x minutes and I want to set it up as pain free as possible since it's my parents who will use it.
I looked around but I can't see how to get it done. I'm not very technical.... intermediate I guess so any help would be great.. I heard it would be done within launchd but... I'm sort of lost.
Thanks!
Posts: 16
Joined: May 2010
Reputation:
0
minel
Junior Member
Posts: 16
Thanks! I think i got it working. So if i want it to refresh every 15 minutes, I'd change wherever it says 45 to 15?
thanks again!
Posts: 21
Joined: Aug 2010
Reputation:
0
autorun this script at startup:
import threading, thread, time
class update:
def __init__(self):
self.busy = 1
xbmc.executebuiltin("xbmc.updatelibrary(video)")
subThread = threading.Thread(target=self.SubthreadProc, args=())
subThread.start()
def SubthreadProc(self):
if self.busy:
self.busy = 0
while 1:
w = update()
del w
time.sleep(43200)
Posts: 3
Joined: Nov 2009
Reputation:
0
or if you install xbmc-send (in the eventsclients stuff package) you can do something like this :
xbmc-send --host=HOST --action='XBMC.updatelibrary(video)'
Posts: 7
Joined: Dec 2008
Reputation:
0
tetodbs, I tried your autoexec.py script on Windows 7 x64 with no luck. The autoupdate script works, because I can enable it in XBMC and see that it works. Any tips on getting it to work? Thanks!
Posts: 13
Joined: May 2010
Reputation:
0
2010-09-13, 20:00
(This post was last modified: 2010-09-13, 20:17 by mwthrane.)
Hello!
Thank you for writing this great script.
But I do have some trouble getting it working. I have made the files needed as listed in post #8. But I did have to create the script and and scripts.au folder myself, I'm not sure if this means anything.
I have see the "AUTO UPDATE" under scripts in XBMC and if i click it it says alarm clock canceled.
But the script doesn't update my library.
I have also tried the autoexec.py in post #16, but I can't get that working either.
I'm using Windows 7 x64 and beta 1 dharma.
Thanks in advance.
Posts: 180
Joined: Jan 2010
Reputation:
2
alex84
Senior Member
Posts: 180
Looks wery nice. May i ask if the user can select
Update video library & Clean video library at the same time.
And also run when xbmc starts button, i only want to do the update and cleaning when booting my computer.
---------------------------------------------------
Intel NUC Haswell D34010WYK | ATV2 | Logitech Harmony One | Onkyo TX-NR808 Receiver | QNAP 809 | APC Back-UPS RS 550
Posts: 315
Joined: Dec 2008
Reputation:
0
@grajen3 nice work, will test out on macos and appletv today
Will let you know
Current setup:
Amlogic M3/MX + Linux + BOXiK Skin + Pioneer vsx520 + Dali Lektor 6
Previous setup:
Revo 3700 + flirc + OpenElec nightlies + Quartz + Pioneer vsx520 + Dali Lektor 6
atv1 + Crystalbuntu + XBMC nightly + xperience1080
Posts: 315
Joined: Dec 2008
Reputation:
0
can confirm that it works on mac os + dharma beta 2, should be all good on apple tv too :>
@grajen3 - ur awesome man!
Ilia
Current setup:
Amlogic M3/MX + Linux + BOXiK Skin + Pioneer vsx520 + Dali Lektor 6
Previous setup:
Revo 3700 + flirc + OpenElec nightlies + Quartz + Pioneer vsx520 + Dali Lektor 6
atv1 + Crystalbuntu + XBMC nightly + xperience1080