- Thread starter
- Moderator
- #411
Thanks @Sebastiii, I have applied the patch.
Dont forget for UserRatings sync for MyVideoThanks @Sebastiii, I have applied the patch.
[2018-03-02 21:33:31,351] [Error ] [CheckConnection] [ERROR] - MediaPortal: Unhandled exception occured
[2018-03-02 21:33:31,371] [Log ] [CheckConnection] [ERROR] - Exception: System.NullReferenceException: СÑылка на объект не указывает на ÑкземплÑÑ€ объекта.
в System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
в System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
в TraktPlugin.GUI.GUIUtils.ShowNotifyDialog(String heading, String text, String image, String buttonText, Int32 timeout)
в TraktPlugin.TraktPlugin.<>c.<GUIWindowManager_OnActivateWindow>b__34_0()
в System.Threading.ThreadHelper.ThreadStart_Context(Object state)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart() Message: СÑылка на объект не указывает на ÑкземплÑÑ€ объекта. Site : System.Object MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean) Source : System.Windows.Forms Stack Trace: в System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
в System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
в TraktPlugin.GUI.GUIUtils.ShowNotifyDialog(String heading, String text, String image, String buttonText, Int32 timeout)
в TraktPlugin.TraktPlugin.<>c.<GUIWindowManager_OnActivateWindow>b__34_0()
в System.Threading.ThreadHelper.ThreadStart_Context(Object state)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart()
Application: MediaPortal.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Server stack trace:
at TraktAPI.Extensions.JSONExtensions.FromJSONDictionary[T](String json)
at TraktAPI.Extensions.DateTimeExtensions.OlsenToWindowsTimezone(String olsenTimezone)
at TraktPlugin.GUI.GUICommon.SetShowProperties(TraktShowSummary show)
at TraktPlugin.TraktDashboard.OnTrendingShowSelected(GUIListItem item, GUIControl parent)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(System.Object, System.Runtime.Remoting.Proxies.MessageData ByRef)
at MediaPortal.GUI.Library.GUIListItem+ItemSelectedHandler.EndInvoke(System.IAsyncResult)
at MediaPortal.GUI.Library.GUIListItem.itemSelectedCallback(System.IAsyncResult)
at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessageSink)
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
/// <summary>
/// Returns the corresponding Olsen timezone e.g. 'Atlantic/Canary' into a Windows timezone e.g. 'GMT Standard Time'
/// </summary>
public static string OlsenToWindowsTimezone(this string olsenTimezone)
{
if (olsenTimezone == null)
return null;
if (_timezoneMappings == null)
{
try
{
_timezoneMappings = Resources.OlsenToWindows.FromJSONDictionary<Dictionary<string, string>>();
}
catch (Exception)
{
return null;
}
}
string windowsTimezone;
_timezoneMappings.TryGetValue(olsenTimezone, out windowsTimezone);
return windowsTimezone;
}
public static string ToLocalisedDayOfWeek(this DateTime date)
{
return DateTimeFormatInfo.CurrentInfo.GetDayName(date.DayOfWeek);
}
@ajs, I checked the code and the version you already have supports this!Dont forget for UserRatings sync for MyVideo
--
WBR, ajs
I dont see any settings about UserRating ...but I'll look again ...@ajs, I checked the code and the version you already have supports this!
Trakt-for-Mediaportal/MyVideos.cs at master · trakt/Trakt-for-Mediaportal · GitHub
Trakt-for-Mediaportal/MyVideos.cs at master · trakt/Trakt-for-Mediaportal · GitHub
You already have it enabled, I saw from one of your logs:I dont see any settings about UserRating ...but I'll look again ...
--
WBR, ajs