Scheduled Library Updates Settings - Schedule regular periodic scan for new content?
#61
Question 
I've setup a script on my file server to do this, and I've found it massively useful. Once an hour my library is updated, and then cleaned, meaning that anything that has downloaded via RSS, is added to my library without my interaction.

Just a suggestion that it should be a feature, rather than a cron-job script, as I've done it.
Reply
#62
Question 
Hi folks...
I've been doing tons of research into how to solve my issue.

And hoping to find out if the following case is true -

Doesn't matter if we use xbmc events or http to send a request to update the library, unless xbmc is actually running - it will not/cannot update the video library?

The reason I ask is -
I have a script that wakes up the server, runs some other scripts (moves files to my video folder) then turns the server off again.

The server boots directly into MythTV 0.22 (Mythbuntu) from startup (as it is a mythtv frontend/backend) and XBMC is an option in the main menu - runs (by exec /usr/bin/xbmc) on demand.

But during this wakeup period (6am) obviously xbmc is not running.

I have tried the xbmc-send to update the library as final script before shutdown, but when I then turn on and run xbmc the library has not been updated.

Does anyone know how I can get xbmc's library to accept an update request in this scenario? The machine wakes up for 1 hour or so to do it's stuff then shutsdown.

I don't leave this server on 24/7 - I turn it on when I want to watch mythv/xbmc.

Any advice would be appreciated!!
Thanks
Alessandro
Reply
#63
Here is a link to what I use for Windows XP. Works like a charm.

http://forum.xbmc.org/showthread.php?tid=65681
Reply
#64
Question 
I could not find an easy way to do this, but I want to have my system periodically go out and rescan for new titles (maybe overnight), and once in a while do a database clean.

Could someone point me in the direction of a solution to this? Smile

Thanks!
Reply
#65
Put this in your advancedsettings.xml

<videolibrary>
<cleanonupdate>true</cleanonupdate>
</videolibrary>

Then tick the checkbox "Update library on startup" under System --> Settings --> Video

Check wiki for more info http://wiki.xbmc.org/index.php?title=Settings

Cheers
---------------------------------------------------
Intel NUC Haswell D34010WYK | ATV2 | Logitech Harmony One | Onkyo TX-NR808 Receiver | QNAP 809 | APC Back-UPS RS 550
Reply
#66
Thanks Alex!. The XML is part of what I was looking for.

However I start my XBMC PC and leave it running, often for weeks. I want to schedule a scan (of all of my SMB shares), say at 2am daily. Any idea how to do that?

Keith
Reply
#67
Dharma or 9.11

http://forum.xbmc.org/showthread.php?p=5...post572661

Dharma from addons

http://forum.xbmc.org/showthread.php?p=6...post605810

You might want to use the search in future Wink
Reply
#68
Thanks X, the Add On looks promising.

I'm not a newbie to forums, and I did search. Try searching for 'schedule' and you get >300 entries. And the add on one you recommended isn't one of them either Smile

But great, all the answers I needed, and in 15 minutes too! Thanks All!
Keith

XBMC on Acer Revo, Windows 7.
ATV2.
Intel NUC, Windows 7
Gateway Laptop when traveling...
Reply
#69
Fair enough sometimes its not that easy to find stuff but some don't even look Confused

Glad I could help anyway Smile
Reply
#70
(2009-07-01, 09:45)prae5 Wrote: No need for python

Enable the web interface on xbmc and then add a cron job with this command:

Code:
0    *    *    *    *    curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)" > /dev/null

This will update the library every minute.

Hi,

First post / first time user of XMBC. Its working really well however would like to create a scheduled task on the windows 7 OS to the library every hour or so. Torrents are scheduled to download and I dont really want to have to check uTorrent separately - I just want the new files to appear a recently added.

The web interface seems the simplest and I can execute in the CMD prompt the following

Code:
curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video))"

No errors are returned however it does not kick off an update.

Any advice?
Reply
#71
The last posts on this thread are all pretty old. XBMC has had a lot of changes to the way it's built in web server functions since then. The old command API has been completely stripped out, those commands will no longer work.

You have a few options. There are some addons that can schedule this task from within XBMC for you. http://addons.xbmc.org/show/service.libraryautoupdate/

OR

You can use a different type of curl request. I'd read over this page: http://wiki.xbmc.org/?title=JSON-RPC_API There are ways to do a GET style request but you'll have to URL encode a JSON string.
Reply
#72
The addon works great! thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Scheduled Library Updates Settings - Schedule regular periodic scan for new content?0