2009-01-12, 18:20
also to mention the obvious; you know there's an update library builtin command? if utorrent can run a script on finish just submit that via http api
spiff Wrote:also to mention the obvious; you know there's an update library builtin command? if utorrent can run a script on finish just submit that via http api
hradec Wrote:coz XBMC takes a lot of CPU power just when in idle,Have you tried playing with Vsynch in settings? (ie enable it only for playback).
if (g_guiSettings.GetBool("videolibrary.intervalupdate"))
{
g_alarmClock.start("udpateintervalvideo", 60, "xbmc.intervalupdate('video')");
}
AddBool(9, "videolibrary.intervalupdate", 22021, false);
else if (execute.Equals("intervalupdate"))
{
if (parameter.Equals("video"))
{
CLog::Log(LOGNOTICE, "Updating video library at interval");
CGUIDialogVideoScan *scanner = (CGUIDialogVideoScan *)m_gWindowManager.GetWindow(WINDOW_DIALOG_VIDEO_SCAN);
SScraperInfo info;
VIDEO::SScanSettings settings;
if (scanner)
{
if (scanner->IsScanning())
scanner->StopScanning();
else
CGUIWindowVideoBase::OnScan("",info,settings);
}
if( g_alarmClock.isRunning() )
g_alarmClock.stop("udpateintervalvideo");
g_alarmClock.start("udpateintervalvideo",60, "xbmc.intervalupdate('video')");
}
}
Quote:"Use the HTTP API and cron it."
TeknoJnky Wrote:@ xmltok, no there is no way to schedule within xbmc, however you can use various external utilities/programs to initiate a rescan via the http api (xbmc's web server) by opening a specific URL to start the scan.