Plugin: MP2Extended (2 Viewers)

breese

Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    67
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    After installing the latest version on both my server and me client, I have discovered a few issues.

    Client Only:
    [2015-10-24 08:03:06,019] [335 ] [Main ] [WARN ] - PluginManager: Plugin 'MP2Extended' cannot be enabled: Plugin dependency 'MediaPortal.Backend' is not available

    This error shows up in huge numbers if I browse to Vidoes... Series Import Broken...
    [2015-10-24 08:04:44,151] [98467 ] [InputMgr ] [INFO ] - WorkflowManager: Trying to show screen 'VideoShowItems'...
    [2015-10-24 08:04:44,291] [98607 ] [InputMgr ] [INFO ] - WorkflowManager: Screen 'VideoShowItems' successfully shown
    [2015-10-24 08:04:44,416] [98732 ] [96 ] [WARN ] - AsyncWebLoadOperation: Failed to download http://[fe80::e1f7:ab0c:b8fa:c251]:60757/FanartService?mediatype=Movie&fanarttype=FanArt&name=f65b072a-905e-40ff-bc7e-054a782e74b0&width=1920&height=1080&NoCache=635812706844062752 - The remote server returned an error: (404) Not Found.
    [2015-10-24 08:04:44,421] [98737 ] [84 ] [WARN ] - AsyncWebLoadOperation: Failed to download http://[fe80::e1f7:ab0c:b8fa:c251]:60757/FanartService?mediatype=Movie&fanarttype=Poster&name=f65b072a-905e-40ff-bc7e-054a782e74b0&width=0&height=0 - The remote server returned an error: (404) Not Found.


    [2015-10-24 08:06:27,256] [201572 ] [AMQ 'ScreenManager'] [WARN ] - Cannot open texture: 03189090-a3c1-4346-9a84-4acd6725dde0.jpg

    [2015-10-24 08:06:30,588] [204904 ] [InputMgr ] [ERROR] - Error loading configuration class 'MediaPortal.Plugins.SlimTv.Client.Settings.Configuration.ShowSeriesInfoSetting'
    System.ArgumentException: Configuration class 'MediaPortal.Plugins.SlimTv.Client.Settings.Configuration.ShowSeriesInfoSetting' not found
    at MediaPortal.Configuration.ConfigurationManagement.ConfigurationNode.Instantiate(ConfigBaseMetadata metadata, PluginRuntime pluginRuntime)

    The Series import is broken...
    These should be labeled Mythbusters S01 thru S12
    Series_01.jpg

    The image above is not correct. This series has 12 folders
    Series_02.jpg

    Within each folder are the Series Shows
    Series_03.jpg

    If you look at the first image, the total number of shows is correct but the importer now has confused something and decided there are more different Years and Shows than what there really is
    This did not happen before this current version
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    After installing the latest version on both my server and me client, I have discovered a few issues.
    First of all thanks for testing :)

    Client Only:
    [2015-10-24 08:03:06,019] [335 ] [Main ] [WARN ] - PluginManager: Plugin 'MP2Extended' cannot be enabled: Plugin dependency 'MediaPortal.Backend' is not available
    Hahah, this one is easy^^ You copied the MP2Extended Plugin to the Client, it is a server only plugin ;) So it can't start on the client side.

    [2015-10-24 08:04:44,416] [98732 ] [96 ] [WARN ] - AsyncWebLoadOperation: Failed to download http://[fe80::e1f7:ab0c:b8fa:c251]:60757/FanartService?mediatype=Movie&fanarttype=FanArt&name=f65b072a-905e-40ff-bc7e-054a782e74b0&width=1920&height=1080&NoCache=635812706844062752 - The remote server returned an error: (404) Not Found.
    [2015-10-24 08:04:44,421] [98737 ] [84 ] [WARN ] - AsyncWebLoadOperation: Failed to download http://[fe80::e1f7:ab0c:b8fa:c251]:60757/FanartService?mediatype=Movie&fanarttype=Poster&name=f65b072a-905e-40ff-bc7e-054a782e74b0&width=0&height=0 - The remote server returned an error: (404) Not Found.
    The fanart is simply not found. So if there was no Poster downloaded the fanart service can't present it. I would say nothing wrong here :)

    [2015-10-24 08:06:27,256] [201572 ] [AMQ 'ScreenManager'] [WARN ] - Cannot open texture: 03189090-a3c1-4346-9a84-4acd6725dde0.jpg
    Has nothing todo with MP2Extended. Just some image not found.

    [2015-10-24 08:06:30,588] [204904 ] [InputMgr ] [ERROR] - Error loading configuration class 'MediaPortal.Plugins.SlimTv.Client.Settings.Configuration.ShowSeriesInfoSetting'
    System.ArgumentException: Configuration class 'MediaPortal.Plugins.SlimTv.Client.Settings.Configuration.ShowSeriesInfoSetting' not found
    at MediaPortal.Configuration.ConfigurationManagement.ConfigurationNode.Instantiate(ConfigBaseMetadata metadata, PluginRuntime pluginRuntime)
    This is something serious. @morpheus_xx Could this come from your branch where you've added the Series information? https://github.com/MediaPortal/MediaPortal-2/commits/FEAT_UpdateTVE
    It is merged in this and is visible in the Client.log.

    The Series import is broken...
    These should be labeled Mythbusters S01 thru S12
    Couldn't reproduce this and Johanj also didn't report something similar... So I don't know how to proceed with this.
    I've imported a whole series Folder from one of my HDDs with several Series, Seasons and over 1000 Episodes... Only Error happened on Top Gear, but this isn't probably taged.
    The strange thing is that your media is probably taged (mine, too except top gear).
    So I think we need more test results from others...
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    67
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    Hahah, this one is easy^^ You copied the MP2Extended Plugin to the Client, it is a server only plugin ;) So it can't start on the client side.
    Using the installer from a day or so ago...
    Server installed as Server Only
    Client installed as Client Only
    These are 2 seperate machines.
    p.s. I did not do an uninstall first..
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Dont think you should cache transparent fallback image. Then you dont get correct image if importer later adds images.
    I thought I save resources by caching it, generating this image is quite fast, so I disabled the caching for this :)

    Yes, I think there is a parameter for image with kept aspect.
    This is the comment inside the fuction from MPExtended:
    // newImageSize is the size of the actual graphic, which might not be the size of the canvas (bitmap). Unless
    // we're instructed to stretch the image, it's a proportional resize of the source graphic. Borders will be
    // added when we're instructed to and the aspect ratio of the image isn't equal to the aspect ratio of the
    // bitmap.
    Looking at the source it keeps the aspect ration and doesn't exceed the set height or width, but only if borders != stretch. But you use stretch => so the aspect ration is not kept, what makes sense.

    Sou you would need to use borders=transparent to keep the aspect ration but get the image in the wanted size. MPExt2 will than fill the rest with transparent borders.If you don't want transparent borders you can send borders=FF0000 for red or some other html color :)
    I attached an thumbnail with red borders (just to make this visible).

    Or do you have another idea how to solve this? I use exactly the same function from MPExtended. Just our Source material is different.

    You could extend the importer to create both 4:3 and 16:9 thumbs.
    Perhaps that would be an acceptable solution?
    I don't think it is that easy:
    Thumnails are not a many to many relations, that means every media item can only have one thumbnail
    Code:
    MediaItemAspectMetadata.CreateAttributeSpecification("Thumbnail", typeof(byte[]), Cardinality.Inline, false);
    Second I don't like to store a huge amount of extra data only for one App... And I also think morpheus wouldn't let pass this^^
    But thanks for trying to help (y)

    Other ideas? :)
     

    Attachments

    • imageCache_6cc5c0bd-cf1a-4561-9328-592d1519b5c4_GetArtworkResized_388_582_FF0000_Thumbnail_Movie.jpg
      imageCache_6cc5c0bd-cf1a-4561-9328-592d1519b5c4_GetArtworkResized_388_582_FF0000_Thumbnail_Movie.jpg
      19.8 KB

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Using the installer from a day or so ago...
    Server installed as Server Only
    Client installed as Client Only
    These are 2 seperate machines.
    p.s. I did not do an uninstall first..
    As far as I know MP doesn't clean the plugins folder before doing an update. So if you copied it there once before it is still there.
    Maybe you should try a clean install with cleaning the plugin folder before reinstalling.

    By using the installer from the first post no patching is required :) It should work out of the box.
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    67
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    I did use the installer from the first post.
    I have sense removed the one MP2 plugin and did clear up the one issue.

    The differences and errors between Series and Videos is interesting.
    Maybe this will help...
    Going into Series and choosing Holmes In New Orleans, all seems ok, but the background image does not change from one episode to another...
    Holmes_01.jpg


    Going into Videos and Paging Down to Holmes In New Orleans, No images appear, no info appears and the Client log has this for Every Series listed in Videos
    Holmes_02.jpg

    [2015-10-24 11:08:50,345] [467134 ] [79 ] [WARN ] - AsyncWebLoadOperation: Failed to download http://[fe80::e1f7:ab0c:b8fa:c251]:60757/FanartService?mediatype=Movie&fanarttype=Poster&name=a846f9aa-ed28-4f3f-a071-993ed9042e37&width=0&height=0 - The remote server returned an error: (404) Not Found.
    [2015-10-24 11:08:50,435] [467224 ] [100 ] [WARN ] - AsyncWebLoadOperation: Failed to download http://[fe80::e1f7:ab0c:b8fa:c251]:60757/FanartService?mediatype=Movie&fanarttype=FanArt&name=a846f9aa-ed28-4f3f-a071-993ed9042e37&width=1920&height=1080&NoCache=635812817303305219 - The remote server returned an error: (404) Not Found.
    [2015-10-24 11:08:52,225] [469014 ] [94 ] [WARN ] - AsyncWebLoadOperation: Failed to download http://[fe80::e1f7:ab0c:b8fa:c251]:60757/FanartService?mediatype=Movie&fanarttype=Poster&name=16288a6f-2ab4-4905-bea3-2af63deec14d&width=0&height=0 - The remote server returned an error: (404) Not Found.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,580
    3,971
    Lehmden
    Home Country
    Germany Germany
    Hi.
    Three questions... first, is the database compatible? Means do I need to backup and restore my "productive" database files. (a backup I do on a daily basis nevertheless)?

    Second.. Is MP2Extended compatible with MPExtended? I don't have any iOS devices and never will get some, so I only can test this with aMPdroid... Also I don't used it since a long time as I prefer DLNA (e.G. BubbleUPnP) over this proprietary system only working with MediaPortal specific software. That's why the MediaServer plugin is much more important imho. But I think there are most parts similar or identical, so the development of both at the same time is something that makes sense.

    And the third is not really important to me but maybe to others. Is it possible to use MP2Extended and MPExtended on the same machine? This is interesting for all those people that are using both MP versions at the same time and getting MP2 Live TV from a MP1 TV Server via MPExtended.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Three questions... first, is the database compatible? Means do I need to backup and restore my "productive" database files. (a backup I do on a daily basis nevertheless)?
    I would do a backup, just to be on the save side. This version creates 3 new Media aspects. So you also need to start a reimport from the gui to populate the information :)

    Second.. Is MP2Extended compatible with MPExtended?
    Yes, this is the big goal. I actually can use AMPdroid, JohanJ is so kind and helps me to fix errors. Because I can't use his app and AMPdroid is not so feature rich and uses different Aspect ratios etc...

    That's why the MediaServer plugin is much more important imho. But I think there are most parts similar or identical, so the development of both at the same time is something that makes sense.
    Especially the transcoding service. It is used by both MP2Ext and MediaServer. And is the only part which needs some more work regarding the MediaServer.
    MrTechno implements some new views to the MediaServer based on the MIA rework right now. So the overall progress is pretty goof :)

    Is it possible to use MP2Extended and MPExtended on the same machine?
    Yes, as long as you define different ports for both :)
    See this post on how to get the Server port and how to change the port: https://forum.team-mediaportal.com/threads/plugin-mp2extended.132322/#post-1155292
    (MP2 Server normally uses random ports on each startup)

    Thanks for jumping in (y)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    new version + change log in first post :)

    @pünktchen
    This version implements all your requests except: EditSchedule, ReadSettingFromDatabase, AddScheduleDetailed

    What are you using ReadSettingsFromDatabase for? Because I probably can't implement this function. TVE3 and TVE3.5 are quite different so I can't just pass some string and get a setting :D

    @johanj
    This version tries also to fix some of your issues, I also implemented all missing functions except the music ones (at least the ones I saw in your log file :) )
    The question how we proceed with the aspect ratio is still open (no rush, just wanted to mention it)

    Edit: This version hopefully also resolves your encoding issue
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Thanks, will try it out asap, maybe tomorrow.

    Dont think its a big issue with the aspect, maybe we missed something in the communication. Before the aspect were off in fanart but latest version I tested looked good for series. But the thumb for the serie( that earlier were ok) now had wrong aspect. So I think you made i misstake when fixing the aspects for image types....

    For movies I dont know what happend, it worked before in earlier versions when I had MPext on my laptop but I dont get a thumb for a single movies when I installed on my HTPC.

    Anyway, will test you latest version when I get a moment and get back to you with screen shots and problemtic urls if its still issues. Thanks for your efforts!
     

    Users who are viewing this thread

    Top Bottom