... fixed the issue you had - very strange - no idea, why this changed... in my test, setting up a sample movie catalog now worked as expected.@ltfearme - just did a quick test from scratch setting up with the wizard and can confirm I get the same error :-( - will have to debug, as the error line doesn't really help ... will come back here when I found something.
UpdateMovies() - Trakt updates are for user 'ltpower', but current MyFilms user is 'Default' - no direct updates to DB fields - only updating MUS!
[ERR ] [Sync][03]: Error synchronising library, Plugin = 'My Films', Error = 'The type initializer for 'MediaPortal.GUI.Library.GUIGraphicsContext' threw an exception.'
I think you mixed the "profile name" - which is simply the name of the config setup with the user name. The username for updating is found on the update tab - activate MUS and write your name in "active user profile name".@Guzzi, I ran a test with trakt sync and although I commit the watched / rating for a user it does not persist(or maybe it does persist but does not restore). It just returns that they are not watched or rated next time I sync. The username matches the configuration.
Why does it think my user is Default and not ltpower ?
THis means, that the current "Default" user will not see any changes - however, the changes sent are still persisted for the user ltpower - so if you switch the user within MyFilms to ltpower, you should see the states. When we had multi user user support, MyFilms supported existence of multiple trakt users - plus local users wihtout trakt. Theoretically, if trakt would have supported parallel user logins, changes from all active trakt users would at any time be synced into MyFilms multi user fields - regardless of which user is currently active in the GUI - so if you switch from person a to person b, all would be there. afaik we newver supported more than 1 active trakt user at the time .... BUT: If you had a central config setup, you could have logged in user a on PC-1 and user b on PC-2 - thus all changed would run into the MyFilms multiuser states. In the past, when switching the MyFilms user, the active trakt user was also changed - we lost this with latest API, thus we still can switch uisers within MyFilms, but Trakt will always stay on the one and only one configured user. Thus e.g. scrobbling should only happen, if the user matches - but we can still write updates from trakt to MyFilms, even when MyFilms is currently active with another user name.EDIT: I found this in the myfilms log:
Code:UpdateMovies() - Trakt updates are for user 'ltpower', but current MyFilms user is 'Default' - no direct updates to DB fields - only updating MUS!
Unfortunately, this information is currently not persisted within the DB schema - I would have to extend it. Will keep it in mind when I will touch the schema next time.@Guzzi, a few other things worth mentioning whilst im updating the MyFilms handler. With MediaInfo resolution I have mapped what I can from your fields but I have assumed all video is progressive. Are you able to add a field for whether or not a video file is interlaced e.g. IsInterlaced. I can then use that field to correctly send the video resolution to trakt e.g. 1080p vs 1080i. No big deal if you don't add it, its more for completion.
I will have to debug this - or at least run it with debug version, so I get a stack trace and a hint where this is happening.Another thing I noticed was that if I use the trakt configuration UI to do a sync as opposed to with-in the MediaPortal GUI automatically, the myfilms handler can't complete because of this error:
Code:[ERR ] [Sync][03]: Error synchronising library, Plugin = 'My Films', Error = 'The type initializer for 'MediaPortal.GUI.Library.GUIGraphicsContext' threw an exception.'
I haven't tracked down which line it's throwing the exception but im assuming when 'BaseMesFilms.GetMovies(ref myvideos);' is called. As i mentioned this works fine with-in the MediaPortal GUI context but not configuration. Its again not critical or anything, its probably always done this and I just noticed now. Worse case, MyFilms users will not be able to sync from config tool.
2017-10-13 11:14:54,129 Debug [ 13 | MyFilmsDetail ]: GlobalLockIsActive() - No Global Lock detected ! (DB-Config: 'C:\ProgramData\Team MediaPortal\MediaPortal\MyFilms\Catalog\SampleMovies.xml')
2017-10-13 11:14:54,148 Debug [ 13 | MyFilmsDetail ]: SetGlobalLock() - successfully created global lock ! - C:\ProgramData\Team MediaPortal\MediaPortal\MyFilms\Catalog\SampleMovies_MONSTERPC.lck
2017-10-13 11:14:54,171 Debug [ 13 | BaseMesFilms ]: UpdateMovies() - Updating Field 'CategoryTrakt' from '' to '' - MovieID = '18', Movie = 'Blade Runner' (1982), IMDB = 'tt0083658', Watched = 'True', Rating = '8.2', RatingUser = '-1', CategoryTrakt = ''
2017-10-13 11:14:54,187 Debug [ 13 | BaseMesFilms ]: UpdateMovies() - failed saving data to disk - Catalog = 'C:\ProgramData\Team MediaPortal\MediaPortal\MyFilms\Catalog\SampleMovies.xml' - reason: Object reference not set to an instance of an object. at MyFilmsPlugin.BaseMesFilms.UpdateMovies(String config, List`1 movielist)
2017-10-13 11:14:54,203 Debug [ 13 | MyFilmsDetail ]: RemoveGlobalLock() - removed global lock ! - C:\ProgramData\Team MediaPortal\MediaPortal\MyFilms\Catalog\SampleMovies_MONSTERPC.lck
2017-10-13 11:14:54,203 Info [ 13 | BaseMesFilms ]: UpdateMovies() - Movie Database locked on try '1 of 10' to write, waiting for next retry