Page 1 of 1

importwatchedstate in advancedsettings.xml

Posted: 12 Feb 2016, 16:39
by convertapple
By default when kodi imports from nfo files it ignores the entries:-
<playcount>10</playcount>
<lastplayed>2016-01-26</lastplayed>

unless the setting below in advancedsettings.xml is set to true (defaults to false):-
<importwatchedstate>true</importwatchedstate>

So if you exported your library then re-imported it all those watched status' are lost. Is there anyway to alter this flag?

In my case I wrote a program that generates these nfo files and sets the value from iTunes, then I tracked down them not importing to this.

Re: importwatchedstate in advancedsettings.xml

Posted: 12 Feb 2016, 17:40
by davilla
create an advancedsettings.xml file and sideload from a server using the FileManager.

Re: importwatchedstate in advancedsettings.xml

Posted: 13 Feb 2016, 10:13
by convertapple
OK, Thanks that worked great. In case anyone else searches this here's my notes (done on AppleTV 4) :-

.Share a folder on my windows box.

.created a file within named advancedsettings.xml containing:-
<advancedsettings>
<videolibrary>
<importwatchedstate>true</importwatchedstate>
</videolibrary>
</advancedsettings>

.Switched skin back to MrMC skin (I was on Amber and File Manager isn't visible on that skin, though could just be my eye site?)

.Go to SYSTEM->File manager on main menu

.On A: Add source ->Browse->Windows network (SMB)->...(navigate to shared folder)->OK = smb://servername/sharename ->OK -> go into folder

.On B: Go into Profile Directory

.On A: Press/hold button to bring up menu, select advancedsettings.xml, press hold button to get menu and do Copy.
Note the advancedsettings.xml file IS NOT visible in B, though it IS there (see admins response below)!

.Exit MrMc ->double press the home button (on original ATV4 remote = harmony smart control didn't work for this), to show running apps and swipe up MrMc to close it. (or do settings->system->restart)

.Reopen MrMc and settings will now be working

Re: importwatchedstate in advancedsettings.xml

Posted: 13 Feb 2016, 12:11
by davilla
The advancedsettings.xml file isn't visible in the Profile folder, nor are any other xxx.xml files in home/userdata.

This is because those files are actually contained inside the tvOS UserDefaults for MrMC app. This is the only place where persistence is guaranteed should tvOS decide to purge the tmp or cache locations. As we have no control over tvOS purging these locations, MrMC settings (xxx.xml files) are inside UserDefaults.

Re: importwatchedstate in advancedsettings.xml

Posted: 14 Feb 2016, 06:08
by amet
its worth saying that advancedsetting.xml, or any xml thats loaded, should be as small as possible. do not add just about any setting in there hoping to "fix something".. we only have 500kb in the UserDefaults