Scheduled Library Updates Settings - Schedule regular periodic scan for new content?
#46
Hey there is an amazing free app called DIRMON that does monitor any folders you want and will execute commands or programs based on changes in a specified folder like a new download finishing. It can then either do the http command to xbmc or I have it first run the command line of tvrename and then run an autoit script to have media companion update library data and then send the xbmc update library command.
DIRMON
http://www.dragonglobal.biz/dirmon.html
Autoit script
http://www.mediafire.com/?zjywnx0izgn
tvrename
http://tvrename.com/
Reply
#47
If you use EventGhost to relay the IR commands from your remote to XBMC you can configure a timer that issues the update command to XBMC. That's how I have it mine.

BUT, I do agree that this feature should be built in for the average user.
Reply
#48
Question 
Is this possible? I know there is a setting to scan new content at startup but sometimes I add quite a bit of content before restarts and conversely, I don't always want it to scan new content at every start.

Thanks.
Reply
#49
there's a python script around for scheduling.

or just write an external tool and submit using the event server and/or the http api.
Reply
#50
http://code.google.com/p/rwparris2-xbmc-...r&can=2&q=

I have not used this in a while... please tell me if it is not working. You may need to modify the .py file, so don't forget to read the readme.
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#51
http://forum.xbmc.org/showthread.php?tid=31645

Here is the current discussion on the topic.
Reply
#52
if your running on a linux machine its easy enough to setup a cron job to do this.
Reply
#53
Thanks for the suggestions. I'll give the python script a try.

BTW, I'm looking for a solution in XBMC for Windows.
Reply
#54
psypher Wrote:If you use EventGhost to relay the IR commands from your remote to XBMC you can configure a timer that issues the update command to XBMC. That's how I have it mine.

BUT, I do agree that this feature should be built in for the average user.

That sounds awesome, can you show us how you do that?
Reply
#55
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.
Reply
#56
I believe Event Ghost will have support for XBMC by default. So just install that on your HTPC that has XBMC running.

The screen is split in two. On the left is a log showing all the events/actions as they come in and on the right is the configuration. Understanding the logs and configuration is important because while at first it's a little weird, you'll eventually understand it. Basically configuring Event Ghost is all about connecting events to actions. The events are shown in the log with lightning bolt icons. So if you cause an event to be triggered via remote you can then connect it to an action by dragging it from the log to an action in the configuration side.

Follow these instructions, exclude the quotes from the values.
  1. In the configuration pane on the right, just right click on System (it's towards the bottom) and select Add Plugin.
  2. It will then ask you to select the plugin to add. Scroll to the bottom, under Other and select Timer
  3. Name it "Library Update"
  4. Set Loops to "1" and Interval to "1" second.
  5. Set Start to "at given time (HH:MM:SS)"
  6. Set the time you want it to run (04:00:00 for 4am)
  7. Set Event name to "Lib.Update"
  8. Now click the Test button so that the event is triggered and shows up in the log
  9. Click the OK button to save and close the dialog window.
  10. Now drag the event that you see in the log (has clock icon and is labeled Timer: Start timer "Library Update")over to the right configuration pane under XBMC\Update Video Library

That's it.

With Event Ghost you can also bind a button from the remote to trigger the library update. To do that, you'd press the button on the remote that you want to use, then in the Event Ghost log you'll see the event for that button (will show at bottom of log with a lightning bolt icon). When you see it, just drag it to the configuration pane and drop it under XBMC\Update Video Library. I use a Logitech Harmony One, so I have a touch screen button on the remote linked to the video update.

Do a search here and you'll find lots of info on how Event Ghost is being used.
http://forum.xbmc.org/showthread.php?tid...EventGhost


I just want to make it clear, that these are just alternatives to getting updates automated. I still strongly believe that automated library scans should be part of the core functionality of XBMC. Just look at Boxee, if anything that is one feature I like where it just goes off and updates the library automatically. I'd still like some configuration options though so I can decide how it should happen (on an interval, specific time, etc...)
Reply
#57
Lightbulb 
It would be really nice if we could schedule a background scan for new content. Even better would be a way to monitor the file path's for changes, so the new content is instant.

In my situation, I would make it scan for new content every 1 minute.

Anyone know if this is already possible, maybe with Windows Scheduled Tasks or something?

Cheers,
Dyoll
Reply
#58
you can trigger update of library via either httpapi or eventserver (and xbmc-send). so just add a call for that in the windows schedualar. Although I'd still say that a bg task for this in core would be a nice thing, trac it.
If you have problems please read this before posting

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

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#59
Hi,

Is it possible to schedule XBMC to scan for new content every specific interval ?
I have new files being imported automatically to their folders, so I want to XBMC's library to be updated automatically.

Any ideas ?

Thanks in advance
Reply
#60
This feature does not exist within XBMC, although there are several ways you can accomplish it with scripts and operating system scheduled tasks. here is a thread that has several different solutions and posted code examples. You'll probably find something that works for you there.

http://forum.xbmc.org/showthread.php?tid=64893
Reply

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