Plugin: MP2Extended (2 Viewers)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    But the time format is different from MPExt1 so start/end time is not correctly converted for me. So I get channel names but cant display the epg grid.
    To be clear: this is your problem:
    "StartTime":"\/Date(1445614200000+0200)\/"
    "EndTime":"\/Date(1445616000000+0200)\/"

    VS.
    "StartTime":"2015-10-23T17:30:00"
    "EndTime":"2015-10-23T18:00:00"
    ?
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Yes. I can of course handle your timeformat, if changing code, but best would be to have them compatible
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I think the timeformat in MPExt is ISO_8601
    Actually MPExtended uses the Microsoft format. MPExtended uses the internal Json converter from IIS, I use the Newtonsoft.Jsons converter, they have different default settings :)

    The attached version should fix sour little DateTime problem :)
     

    Attachments

    • MP2Extended_24.10.2015.rar
      1.2 MB

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Fanart in Series is now correct but you managed to give thumbs in series wrong aspect.
    Haha, I manged nothing :D
    I use the MP2 fanart provider to get all this. The thumbs are generated by MP using:
    scale=iw/2:-1
    The ffmpeg documentation says:
    Starting with something simple. Resize a 640x480 input to a 320x240 output.

    ffmpeg -i input -vf scale=iw/2:-1 output

    iw is input width. In this example the input width is 640. 640/2 = 320. The -1 tells the scale filter to preserve the aspect ratio of the output, so in this example the scale filter will choose a value of 240. See the FFmpeg documentation for additional information.
    Does that make sense? You use 4:3 (at least it looks like), but the Episode is 16:9 => wrong aspect ratio.
    All thumbs are generated during the import and not generated on the fly. I could extract my own thumbs, but I don't know if this is a good idea.

    Any thoughts on that?
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Thumbs and fanart in movies dont work at all.
    Probably there is no fanart available. In you list you mention exceptions, probably they are like these:
    [2015-10-23 18:19:40,175] [1202909] [47 ] [WARN ] - GetArtworkResized: no fanart found - fanArtMediaType: ChannelTv, fanartType: FanArt, name: BBC Brit
    [2015-10-23 18:19:40,175] [1202909] [47 ] [ERROR] - MainRequestHandler: Exception: {0}
    HttpServer.Exceptions.BadRequestException: BadRequest: GetArtworkResized: no fanart found
    at MediaPortal.Plugins.MP2Extended.ResourceAccess.WSS.stream.Images.BaseClasses.BaseGetArtwork.GetFanArtImages(String id, String showId, String seasonId, Boolean isSeason, Boolean isTvRadio)
    at MediaPortal.Plugins.MP2Extended.ResourceAccess.WSS.stream.Images.GetArtworkResized.Process(IHttpRequest request)
    at MediaPortal.Plugins.MP2Extended.ResourceAccess.WSS.StreamingServiceStreamHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session)
    at MediaPortal.Plugins.MP2Extended.ResourceAccess.StreamingServiceHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session)
    at MediaPortal.Plugins.MP2Extended.ResourceAccess.MainRequestHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session)
    Currently I throw an exception if there is no image available. Do you wish a different behavior? I can also return a dummy image :) Any wishes?
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Not home now so quick reply. Yes, we want to cut out a section of the fanart and keep original aspect ratio. Bot sure if the parameters for this bug should be in the url I gave.

    I had plenty of fanart in mp2 client but no fanart or mivie thumbs in MPiV, maybe due to exception on some if them? Dont think exception shoyld be raised if no image. Maybe just return a transparent png.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I had plenty of fanart in mp2 client but no fanart or mivie thumbs in MPiV, maybe due to exception on some if them? Dont think exception shoyld be raised if no image. Maybe just return a transparent png.
    I create dynamically a transparent PNG in case there is no fanart and write a debug message to the logs. This transparent image gets also cached like every other image.

    Bot sure if the parameters for this bug should be in the url I gave.
    Sorry, I don't understand :D
    Do you suggest to add an extra parameter to the URL to cut out a piece?
     

    mrj

    Portal Pro
    January 27, 2012
    252
    100
    Hi FreakyJ
    ou use 4:3 (at least it looks like), but the Episode is 16:9 => wrong aspect ratio.
    All thumbs are generated during the import and not generated on the fly. I could extract my own thumbs, but I don't know if this is a good idea.

    Any thoughts on that?

    You could extend the importer to create both 4:3 and 16:9 thumbs.
    Perhaps that would be an acceptable solution?
    mrj
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Typos when writing on iphone... Yes, I think there is a parameter for image with kept aspect. Or that is default if not adding stretch parameter? Need to check at computer. But all parameters should be in url I gave you.[DOUBLEPOST=1445691056][/DOUBLEPOST]Dont think you should cache transparent fallback image. Then you dont get correct image if importer later adds images.
     

    Users who are viewing this thread

    Top Bottom