fixed problem with advancedsettings file

This commit is contained in:
Marcel van der Veldt 2015-03-29 00:30:13 +01:00
parent 8bea68b951
commit 4d9a9cf139

View file

@ -182,7 +182,7 @@ def KodiAdvancedSettingsCheck():
root = tree.getroot() root = tree.getroot()
video = root.find("videolibrary") video = root.find("videolibrary")
if video == None: if video == None:
video = SubElement(sources, "videolibrary") video = SubElement(root, "videolibrary")
# add the settings # add the settings
if video.find("importwatchedstate") == None: if video.find("importwatchedstate") == None:
writeNeeded = True writeNeeded = True