- May 13, 2007
- 418
- 37
- Home Country
-
United Kingdom
If you untick 'Automatically select the nearest match' in the configuration utility then click ok the next time you run the utlity none of your defined database search settings are loaded in the list view.
They are still defined in the MediaPortal.xml; they are just not loaded into the config UI.
in the code:
In MovieData.cs in LoadSettings(), for some reason (yet to investigate as I am new to looking through it) if
_isFuzzyMatching returns false then
int iNumber = xmlreader.GetValueAsInt("moviedatabase", "number", 0);
will always return 0, regardless of the real value in MediaPortal.xml
---------------------------------------------------------------------------------------------
update
Problem was with setting UI component updtaes mixed in with reading from the XML cache, some of these like OnFuzzyMatchingCheckedChanged call SaveSettings which write out the changes to the XML file which in turn broke the next read location for number.
I have moved all the UI updates to the end of the load function and this has solved the problem.
They are still defined in the MediaPortal.xml; they are just not loaded into the config UI.
in the code:
In MovieData.cs in LoadSettings(), for some reason (yet to investigate as I am new to looking through it) if
_isFuzzyMatching returns false then
int iNumber = xmlreader.GetValueAsInt("moviedatabase", "number", 0);
will always return 0, regardless of the real value in MediaPortal.xml
---------------------------------------------------------------------------------------------
update
Problem was with setting UI component updtaes mixed in with reading from the XML cache, some of these like OnFuzzyMatchingCheckedChanged call SaveSettings which write out the changes to the XML file which in turn broke the next read location for number.
I have moved all the UI updates to the end of the load function and this has solved the problem.