1. No user installed addons are supported, python or otherwise.
2. No, they really are not supported.
3. They are not coming back
4. Read from 1. again

Any mention of illegal streaming sites, addons or any pirated material will not be tolerated. This is not democracy and any offenders will be banned and posts deleted immediately without warning.

Other than that, we hope you enjoy MrMC so far and we welcome any input and feedback you might have.

Team MrMC.

importwatchedstate in advancedsettings.xml

there is zero(0) promises that any of the requests will be fulfilled or even looked at
Post Reply
convertapple
Posts: 27
Joined: 10 Feb 2016, 15:45

importwatchedstate in advancedsettings.xml

Post 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.
User avatar
davilla
Team MrMC
Posts: 4377
Joined: 26 Oct 2015, 17:01

Re: importwatchedstate in advancedsettings.xml

Post by davilla »

create an advancedsettings.xml file and sideload from a server using the FileManager.
convertapple
Posts: 27
Joined: 10 Feb 2016, 15:45

Re: importwatchedstate in advancedsettings.xml

Post 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
Last edited by convertapple on 13 Feb 2016, 13:25, edited 2 times in total.
User avatar
davilla
Team MrMC
Posts: 4377
Joined: 26 Oct 2015, 17:01

Re: importwatchedstate in advancedsettings.xml

Post 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.
User avatar
amet
Team MrMC
Posts: 3787
Joined: 26 Oct 2015, 16:59
Location: Dubai/Novi Sad

Re: importwatchedstate in advancedsettings.xml

Post 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
Post Reply