joshua.lyon
Donor Joined: Dec 2009 Reputation: 0 Location: North Texas |
2010-01-05 05:29
Post: #11
For other people looking for details on how to have your library automatically update on a regular interval, I've posted a step-by-step how-to on my blog. Check it out and post back here (or in the comments) if you have questions.
|
| find quote |
MDPauley
Senior Member Posts: 264 Joined: Mar 2004 Reputation: 0 Location: Centreville, Va |
2010-01-05 06:45
Post: #12
autoexec.py
Code: import xbmc, xbmcguiVideoLibraryUpdater.py Code: import xbmc, xbmcguiPut both scripts in your special://home/scripts directory. These 2 scripts will create a timed event that will update the library every 45 minutes... XBMC 9.11 Ubuntu 9.10 Acer Aspire Revo AR1600-U910H Sony Blu-ray Remote for PlayStation 3 HP MediaSmart EX490
(This post was last modified: 2010-01-05 07:28 by MDPauley.)
|
| find quote |
altern8
Junior Member Posts: 44 Joined: May 2007 Reputation: 0 |
2010-01-05 07:33
Post: #13
MDPauley Wrote:autoexec.py thanks for the code, sorry for the noobie question but where exactly is "special://home/scripts" located? i couldnt find it logging in as root or xbmc |
| find quote |
MDPauley
Senior Member Posts: 264 Joined: Mar 2004 Reputation: 0 Location: Centreville, Va |
2010-01-05 07:41
Post: #14
Windows: %appdata%\xbmc\scripts\
Linux: ~/.xbmc/scripts/ OSX: not sure... XBMC 9.11 Ubuntu 9.10 Acer Aspire Revo AR1600-U910H Sony Blu-ray Remote for PlayStation 3 HP MediaSmart EX490 |
| find quote |
tstack77
Member Posts: 59 Joined: Oct 2008 Reputation: 0 |
2010-01-12 02:20
Post: #15
MDPauley, your scripts worked great! I even modified one to clean the library twice a day as well (simple I know, but I am a complete noob with scripting).
I made it by creating a CleanVideoLibrary.py and adding the job to autoexec.py CleanVideoLibrary.py Code: import xbmc, xbmcguiautoexec.py Code: import xbmc, xbmcguiI do have one quick question though that 20 minutes on google couldn't help me with. How do I set an exact time of day to run the script instead of every 12 hours? I tried changing the minutes to xx:yy format (18:15), but that wasn't the answer. Thanks for all the help
|
| find quote |
MDPauley
Senior Member Posts: 264 Joined: Mar 2004 Reputation: 0 Location: Centreville, Va |
2010-01-12 20:13
Post: #16
Change the 06 (6 AM) and 18 (6 PM) to the times you want to clean you library. I would do this in both autoexec.py and CleanVideoLibrary.py.
Code: import timeXBMC 9.11 Ubuntu 9.10 Acer Aspire Revo AR1600-U910H Sony Blu-ray Remote for PlayStation 3 HP MediaSmart EX490
(This post was last modified: 2010-01-12 21:03 by MDPauley.)
|
| find quote |
tstack77
Member Posts: 59 Joined: Oct 2008 Reputation: 0 |
2010-01-13 19:13
Post: #17
Awesome. That is a lot more complicated than I expected, and I had zero chance of making that on my own.
Thank you |
| find quote |
marcus2004
Junior Member Posts: 1 Joined: Dec 2009 Reputation: 0 |
2010-05-24 19:53
Post: #18
joshua.lyon Wrote:For other people looking for details on how to have your library automatically update on a regular interval, I've posted a step-by-step how-to on my blog. Check it out and post back here (or in the comments) if you have questions. Joshua I have used the info on your blog to do this before, but for whatever reason I don't think that the script is exiting properly after or something as after a day or two my machine slows down. As soon as I remove the cron items for the update it is fine. I had it set to 30 min updates and once a day cleaning. I am trying try this python scripts to see if it is better. |
| find quote |
jfgi
Junior Member Posts: 24 Joined: Jan 2010 Reputation: 0 |
2010-05-29 06:34
Post: #19
tstack77 Wrote:MDPauley, your scripts worked great! I even modified one to clean the library twice a day as well (simple I know, but I am a complete noob with scripting). Clean just makes XBMC (Windows, v9.11 and r28256) freeze for me. There's no issue when i run it from the menu, but everytime i run it from a script, it freezes. |
| find quote |
tetodbs
Junior Member Posts: 46 Joined: Jan 2010 Reputation: 0 |
2010-07-06 00:16
Post: #20
MDPauley Wrote:autoexec.py How to make it work for latest svn with addon system? Thanks |
| find quote |

Search
Help