Reply to thread

Thank you for your reply.  I did find how to list the available providers.  I am now typing this URL into Firefox:


http://ipaddress:4322/MPExtended/MediaAccessService/json/GetPlaylists?provider=4


and receive the following error:


{"ExceptionType":"System.Collections.Generic.KeyNotFoundException","Message":"The given key was not present in the dictionary.","StackTrace":"   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\u000d\u000a   at MPExtended.PlugIns.MAS.MPMusic.MPMusic.GetPlaylists() in C:\\Users\\Oxan\\Documents\\Projects\\MPExtended\\PlugIns\\MPExtended.PlugIns.MAS.MPMusic\\MPMusic.cs:line 504\u000d\u000a   at MPExtended.Services.MediaAccessService.MediaAccessService.GetPlaylists(Nullable`1 provider) in C:\\Users\\Oxan\\Documents\\Projects\\MPExtended\\Services\\MPExtended.Services.MediaAccessService\\MediaAccessService.cs:line 820\u000d\u000a   at SyncInvokeGetPlaylists(Object , Object[] , Object[] )\u000d\u000a   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)\u000d\u000a   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)\u000d\u000a   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)"}


Any idea why I am getting this error?


I am trying to use this command to get the IDs of my playlists since I don't know what they are.  I'm hoping once I have that information that I'll be able to load this playlist via MPExtended or WiFi remote.  Is this possible?  I can trigger play via IR if needed so I'm not worried about that right now.  I'm just trying to programmatically load a playlist.


Are simple HTTP GET commands enough to accomplish this or will I need to write my own application?  I'm trying to interface HomeSeer 3 with MediaPortal for a few simple tasks, such as this one.  I can run VB.NET, vbScript and Perl within HomeSeer if needed.


Top Bottom