Reload of sources.xml
#1
I have done a search and only found threads with no replies or answers like

"use the library"
"edit the sources through the gui"

I need a way to get xbmc to reload sources.xml.
I updated sources, but the only way I have found to reload it is by quitting and opening again.

I know skin devs have an option to reload various things without having to quit, I just wondered if there could be an advanced setting to reload sources.xml if it has been modified externally.

Thanks
Reply
#2
i guess a patch to add a ReloadSources builtin would be acceptable.
Reply
#3
spiff Wrote:i guess a patch to add a ReloadSources builtin would be acceptable.

Is something like this sufficient?
(Only asking as I can't get it to build on my osx machine, and am away from my system76)

+++ Builtins.cpp
@@ -195,6 +195,7 @@
{ "LCD.Suspend", false, "Suspends LCDproc" },
{ "LCD.Resume", false, "Resumes LCDproc" },
#endif
+ { "ReloadSources", false, "Reloads sources.xml" },
};

bool CBuiltins::HasCommand(const CStdString& execString)
@@ -1381,6 +1382,10 @@
g_lcd->Resume();
}
#endif
+ else if (execute.Equals("reloadsources"))
+ {
+ g_settings.LoadSources();
+ }
else
return -1;
return 0;
Reply
#4
Tested working against latest git.

Patch submitted here http://trac.xbmc.org/ticket/12104

Thread can be closed, thanks
Reply
#5
aye, that works.
Reply

Logout Mark Read Team Forum Stats Members Help
Reload of sources.xml0