MyFilms --> MPExtended --> MPiV (1 Viewer)

roedler86

MP Donator
  • Premium Supporter
  • August 25, 2015
    92
    15
    Home Country
    Germany Germany
    Hey Guys,

    first of all: MP is so great, thanks for all your time and power putting this together.

    At the moment I'm facing a problem with my MyFilms plugin and MPiV. If I connect with MPiV I get a red cross for Movies on the connection list:

    iPad.png


    MPExtended Log is showing some unhandled exception.

    2015-08-25 14:25:38.81411 [ (41)] ERROR: Unhandled exception in service (JSON interface)
    System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
    Parameter name: startIndex
    at System.String.Substring(Int32 startIndex, Int32 length)
    at System.String.Substring(Int32 startIndex)
    at MPExtended.PlugIns.MAS.MyFilms.MyFilms.NodeToMovie[T](XElement item) in D:\Projects\MediaPortal\MpExt\git\PlugIns\MPExtended.PlugIns.MAS.MyFilms\MyFilms.cs:line 253
    at MPExtended.PlugIns.MAS.MyFilms.MyFilms.<GetAllMovies>b__1b(XElement x) in D:\Projects\MediaPortal\MpExt\git\PlugIns\MPExtended.PlugIns.MAS.MyFilms\MyFilms.cs:line 115
    at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
    at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
    at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
    at MPExtended.Services.MediaAccessService.Finalization.ForList[T](IEnumerable`1 list, Nullable`1 provider, ProviderType providerType) in D:\Projects\MediaPortal\MpExt\git\Services\MPExtended.Services.MediaAccessService\Finalization.cs:line 37
    at MPExtended.Services.MediaAccessService.MediaAccessService.GetMoviesBasic(Nullable`1 provider, String filter, Nullable`1 sort, Nullable`1 order) in D:\Projects\MediaPortal\MpExt\git\Services\MPExtended.Services.MediaAccessService\MediaAccessService.cs:line 175
    at SyncInvokeGetMoviesBasic(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

    I'm using MediaPortal 1.12 on Windows 8.1, the newest MyFilms version (6.1.0.3107) and MPExtended 0.6 beta.

    MPExtended-logs are attached... Let me know if you need further information/logs.

    Any ideas? Please :)
     
    Last edited:

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    Have you configured to use MyFilms in MPExtended configuration?

    Have you tested the GetServiceDescription url that is given in MPExtended configuration?

    I haven't tested MyFilms myself, only MyVideos and Moving Pictures.
     

    roedler86

    MP Donator
  • Premium Supporter
  • August 25, 2015
    92
    15
    Home Country
    Germany Germany
    Hey johanj,

    thanks for your fast replay.

    I tried to config MyFilms in the MPExtended configuration but there is no option/configuration for MyFilm:

    PlugIns.png


    But it is listed in the GetServiceDescription as Id 13:

    {"ApiVersion":5,"AvailableFileSystemLibraries":[{"Id":9,"Name":"MP Music Shares","Version":"0.5.99.1"},{"Id":5,"Name":"MP Shares","Version":"0.5.99.1"},{"Id":11,"Name":"MP Picture Shares","Version":"0.5.99.1"},{"Id":10,"Name":"MP Movie Shares","Version":"0.5.99.1"}],"AvailableMovieLibraries":[{"Id":7,"Name":"MP MyVideo","Version":"0.5.99.1"},{"Id":13,"Name":"My Films (Ant Movie Catalog only)","Version":"0.5.99.1"}],"AvailableMusicLibraries":[{"Id":4,"Name":"MP MyMusic","Version":"0.5.99.1"}],"AvailablePictureLibraries":[{"Id":8,"Name":"MP Picture Shares","Version":"0.5.99.1"}],"AvailableTvShowLibraries":[],"DefaultFileSystemLibrary":5,"DefaultMovieLibrary":0,"DefaultMusicLibrary":4,"DefaultPictureLibrary":0,"DefaultTvShowLibrary":0,"ServiceVersion":"0.6.0-beta"}

    I'm using the recommended Ant Movie Catalog Xtended (V4.1).
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    Can you check what MPExtended return for the number of films in Myfilms:
    localhost:4322/MPExtended/MediaAccessService/json/GetMovieCount?provider=13
    and also for MyVideos:
    localhost:4322/MPExtended/MediaAccessService/json/GetMovieCount?provider=7

    If the above work:
    Have you also configured My Film as Movie plugin in MPiV? Can you please send me your MPiV log? Check wiki for how to get them:
    http://wiki.team-mediaportal.com/1_...s/Mobile/MediaPortal_iViewer/Trouble_shooting
     

    roedler86

    MP Donator
  • Premium Supporter
  • August 25, 2015
    92
    15
    Home Country
    Germany Germany
    Thanks again for your fast replay.

    localhost:4322/MPExtended/MediaAccessService/json/GetMovieCount?provider=13 returns:
    {"ExceptionType":"System.ArgumentOutOfRangeException","Message":"startIndex cannot be larger than length of string.\u000d\u000aParameter name: startIndex","StackTrace":" at System.String.Substring(Int32 startIndex, Int32 length)\u000d\u000a at System.String.Substring(Int32 startIndex)\u000d\u000a at MPExtended.PlugIns.MAS.MyFilms.MyFilms.NodeToMovie[T](XElement item) in D:\\Projects\\MediaPortal\\MpExt\\git\\PlugIns\\MPExtended.PlugIns.MAS.MyFilms\\MyFilms.cs:line 253\u000d\u000a at MPExtended.PlugIns.MAS.MyFilms.MyFilms.<GetAllMovies>b__1b(XElement x) in D:\\Projects\\MediaPortal\\MpExt\\git\\PlugIns\\MPExtended.PlugIns.MAS.MyFilms\\MyFilms.cs:line 115\u000d\u000a at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\u000d\u000a at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()\u000d\u000a at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)\u000d\u000a at lambda_method(Closure )\u000d\u000a at System.Linq.EnumerableExecutor`1.Execute()\u000d\u000a at System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute[ S](Expression expression)\u000d\u000a at System.Linq.Queryable.Count[TSource](IQueryable`1 source)\u000d\u000a at MPExtended.Services.MediaAccessService.MediaAccessService.GetMovieCount(Nullable`1 provider, String filter) in D:\\Projects\\MediaPortal\\MpExt\\git\\Services\\MPExtended.Services.MediaAccessService\\MediaAccessService.cs:line 170\u000d\u000a at SyncInvokeGetMovieCount(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)"}

    localhost:4322/MPExtended/MediaAccessService/json/GetMovieCount?provider=7 returns:
    {"Result":0}

    Yes, I configured MPiV Movies section to "My Films".

    Please see the MPiV-log attached.
     
    Last edited:

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    Ok, not much I can do then. Clearly the simplest MAS request do not work for that movie database in your case. This mean that MPiV wont continue initializing the movie activity.

    Do you need to use MyFilms or can you use Moving Pictures instead?

    MPExtended development has stalled so I doubt any developer will help you fixing issues. Hopefully its a configuration thing. Has anyone else got MyFilm s working with MPExtended?
     

    roedler86

    MP Donator
  • Premium Supporter
  • August 25, 2015
    92
    15
    Home Country
    Germany Germany
    I'm so happy... I finally found the problem... I found the reason for this error message...

    I have some movies with no cover. So the picture-tag in the catalog.xml was like picture="". I added just a random picture location like picture="c:\ab\cd.jpg" to all these movies and it is working very well.

    Thanks a lot for your input.
     

    roedler86

    MP Donator
  • Premium Supporter
  • August 25, 2015
    92
    15
    Home Country
    Germany Germany
    Hey johanj,

    I'm facing another problem...

    Now, that can open the movie section, I can select every movie and can see all details. Very nice.

    But if I hit the play button in the movie section nothing happens...

    In the other sections (Series, Music, Radio,..) its working very well, so I guess its the combination (MyFilms --> MPExtended --> MPiV) again.

    Can you give me a hint?

    Thanks in advanced.
     

    Attachments

    • Screen.png
      Screen.png
      5.5 MB

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    Thanks for the logs. I can see where the issue happens. It first try to get media info for the movie before calling WifiRemote with play command. Retrieving medinfo fails for some reason. It's done a bit different for moving pictures (that I use) so it could be a general issue when not using Mov pic..

    Can you try the command "GetExternalMediaInfo" with parameters "?type=0&id=552"
    http://wiki.team-mediaportal.com/1_...rs/API_Documentation/MAS#GetExternalMediaInfo
     

    roedler86

    MP Donator
  • Premium Supporter
  • August 25, 2015
    92
    15
    Home Country
    Germany Germany
    Thanks for the fast replay.

    I got the follow message:
    {"ExceptionType":"MPExtended.Libraries.Service.Shared.MethodCallFailedException","Message":"Tried to get library for unknown id of type Movie","StackTrace":" at MPExtended.Services.MediaAccessService.LibraryList`1.get_Item(Nullable`1 key) in D:\\Projects\\MediaPortal\\MpExt\\git\\Services\\MPExtended.Services.MediaAccessService\\LibraryList.cs:line 72\u000d\u000a at MPExtended.Services.MediaAccessService.MediaAccessService.GetLibrary(Nullable`1 provider, WebMediaType type) in D:\\Projects\\MediaPortal\\MpExt\\git\\Services\\MPExtended.Services.MediaAccessService\\MediaAccessService.cs:line 53\u000d\u000a at MPExtended.Services.MediaAccessService.MediaAccessService.GetExternalMediaInfo(Nullable`1 provider, WebMediaType type, String id) in D:\\Projects\\MediaPortal\\MpExt\\git\\Services\\MPExtended.Services.MediaAccessService\\MediaAccessService.cs:line 150\u000d\u000a at SyncInvokeGetExternalMediaInfo(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)"}

    If I add the parameter "provider=13" I get:
    {"Type":"my films","Id":"552"}


    I'm using the app HECo for my iPhone and there it is working... Not very well, but the movies are starting...
     
    Last edited:

    Users who are viewing this thread

    Top Bottom