Extensions: A GUI Plugin for MediaPortal's MPEI Installer (2 Viewers)

maxter

New Member
March 24, 2010
2
0
Re: Plugin for MpeInstaller

it would be nice it could be possible to DISABLE plugins within the mpei installer...
AND to have the possibility to cancel an update of the mpei window plugin while starting mp
 

1stdead

Portal Pro
February 1, 2008
1,089
139
Copenhagen
Home Country
Denmark Denmark
Re: Plugin for MpeInstaller

Exception:
2010-03-24 20:33:22.409984 [Debug][(22)]: [MPEI]Update info loded from update.xml - mytrailers - Project Hosting on Google Code
2010-03-24 20:33:23.431043 [Debug][(19)]: [MPEI]Update info loded from MyLyrics_MPE1_BETA.xml - mpmylyrics - Project Hosting on Google Code
2010-03-24 20:33:23.914070 [Debug][(22)]: [MPEI]Update info loded from http://radiotime-plugin-for-mediaportal.googlecode.com/svn/trunk/setup/update.xml
2010-03-24 20:33:24.200087 [Debug][(19)]: [MPEI]Update info loded from http://youtube-fm-for-mediaportal.googlecode.com/svn/trunk/YouTube.fm.Plugin/MPEI/update.xml
2010-03-24 20:33:24.383097 [Debug][(22)]: [MPEI]Update info loded from http://amped.googlecode.com/svn/trunk/MpeRelease/update.xml
2010-03-24 20:33:24.668113 [Debug][(19)]: [MPEI]Update info loded from http://chris9r.pytalhost.com/InfoService/Installer/update.xml
2010-03-24 20:33:25.205144 [Debug][(22)]: [MPEI]Update info loded from http://mp-plugins.svn.sourceforge.n...ugins/MusicBrainzRating/MpeRelease/update.xml
2010-03-24 20:33:25.380154 [Debug][(19)]: [MPEI]Update info loded from http://mytrailers.googlecode.com/svn/branches/2.x/MPEI/update.xml
2010-03-24 20:33:25.562165 [Debug][(19)]: [MPEI]Update info loded from http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/MyAlarm/MpeRelease/update.xml
2010-03-24 20:33:25.900184 [Info.][(19)]: Exception :confused:ystem.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
2010-03-24 20:33:25.901184 [Info.][(19)]: Exception :The remote server returned an error: (404) Not Found.
2010-03-24 20:33:25.901184 [Info.][(19)]: site :confused:ystem.Net.WebResponse EndGetResponse(System.IAsyncResult)
2010-03-24 20:33:25.901184 [Info.][(19)]: source :confused:ystem
2010-03-24 20:33:25.902184 [Info.][(19)]: stacktrace: at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
2010-03-24 20:33:26.291206 [Debug][(19)]: [MPEI]Update info loded from http://mp-onlinevideos2.googlecode.com/svn/trunk/MPEI/update.xml
2010-03-24 20:33:26.523220 [Debug][(22)]: [MPEI]Update info loded from http://techcrawler.riedme.de/upload/outlookmail/OutlookMailUpdate.xml
2010-03-24 20:33:26.729231 [Debug][(22)]: [MPEI]Update info loded from http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/MySimon/MpeRelease/update.xml
2010-03-24 20:33:26.923242 [Debug][(22)]: [MPEI]Update info loded from http://huha-mediaportal-plugins.googlecode.com/files/TvWishList.xml
2010-03-24 20:33:29.214373 [Debug][(7)]: [MPEI]Update info loded from MyLyrics_MPE1_stable.xml - mpmylyrics - Project Hosting on Google Code
 

1stdead

Portal Pro
February 1, 2008
1,089
139
Copenhagen
Home Country
Denmark Denmark
Re: Plugin for MpeInstaller

Hi dukus any update on that error?
2010-05-12 14:57:35.435620 [ERROR][(35)]: Exception :confused:ystem.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
 

1stdead

Portal Pro
February 1, 2008
1,089
139
Copenhagen
Home Country
Denmark Denmark
Re: Plugin for MpeInstaller

Another bug:
2010-05-23 17:07:42.316317 [ERROR][MPMain(1)]: SKIN: Missing C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Maya\myextensions2.xml
2010-05-23 17:07:42.317317 [ERROR][MPMain(1)]: No translation found for id 100801
2010-05-23 17:07:42.737342 [ERROR][MPMain(1)]: OnMessage exception:confused:ystem.NullReferenceException: Object reference not set to an instance of an object.
at MPEIPlugin.GUIMpeiPlugin.OnPageLoad() in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 421
at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
2010-05-23 17:08:20.600507 [ERROR][MPMain(1)]: Exception :confused:ystem.NullReferenceException: Object reference not set to an instance of an object.
at MPEIPlugin.GUIMpeiPlugin.OnAction(Action action) in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 379
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2010-05-23 17:08:20.600507 [ERROR][MPMain(1)]: Exception :Object reference not set to an instance of an object.
2010-05-23 17:08:20.601507 [ERROR][MPMain(1)]: site :Void OnAction(MediaPortal.GUI.Library.Action)
2010-05-23 17:08:20.602507 [ERROR][MPMain(1)]: source :MPEIPlugin
2010-05-23 17:08:20.603507 [ERROR][MPMain(1)]: stacktrace: at MPEIPlugin.GUIMpeiPlugin.OnAction(Action action) in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 379
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2010-05-23 17:08:20.603507 [ERROR][MPMain(1)]: exception: Object reference not set to an instance of an object. MPEIPlugin at MPEIPlugin.GUIMpeiPlugin.OnAction(Action action) in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 379
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2010-05-23 17:08:20.606508 [ERROR][MPMain(1)]: Exception :confused:ystem.Exception: exception occured ---> System.NullReferenceException: Object reference not set to an instance of an object.
at MPEIPlugin.GUIMpeiPlugin.OnAction(Action action) in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 379
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
--- End of inner exception stack trace ---
at MediaPortalApp.OnAction(Action action)
at MediaPortal.GUI.Library.OnActionHandler.Invoke(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
at MediaPortalApp.FrameMove()
2010-05-23 17:08:20.607508 [ERROR][MPMain(1)]: Exception :exception occured
2010-05-23 17:08:20.607508 [ERROR][MPMain(1)]: site :Void OnAction(MediaPortal.GUI.Library.Action)
2010-05-23 17:08:20.608508 [ERROR][MPMain(1)]: source :MediaPortal
2010-05-23 17:08:20.608508 [ERROR][MPMain(1)]: stacktrace: at MediaPortalApp.OnAction(Action action)
at MediaPortal.GUI.Library.OnActionHandler.Invoke(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
at MediaPortalApp.FrameMove()
2010-05-23 17:08:21.838578 [ERROR][MPMain(1)]: Exception :confused:ystem.NullReferenceException: Object reference not set to an instance of an object.
at MPEIPlugin.GUIMpeiPlugin.OnAction(Action action) in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 379
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2010-05-23 17:08:21.838578 [ERROR][MPMain(1)]: Exception :Object reference not set to an instance of an object.
2010-05-23 17:08:21.839578 [ERROR][MPMain(1)]: site :Void OnAction(MediaPortal.GUI.Library.Action)
2010-05-23 17:08:21.840578 [ERROR][MPMain(1)]: source :MPEIPlugin
2010-05-23 17:08:21.841578 [ERROR][MPMain(1)]: stacktrace: at MPEIPlugin.GUIMpeiPlugin.OnAction(Action action) in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 379
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2010-05-23 17:08:21.843578 [ERROR][MPMain(1)]: exception: Object reference not set to an instance of an object. MPEIPlugin at MPEIPlugin.GUIMpeiPlugin.OnAction(Action action) in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 379
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2010-05-23 17:08:21.845578 [ERROR][MPMain(1)]: Exception :confused:ystem.Exception: exception occured ---> System.NullReferenceException: Object reference not set to an instance of an object.
at MPEIPlugin.GUIMpeiPlugin.OnAction(Action action) in F:\devel\vs2005\MPEIPlugin\MPEIPlugin\GUIMpeiPlugin.cs:line 379
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
--- End of inner exception stack trace ---
at MediaPortalApp.OnAction(Action action)
at MediaPortal.GUI.Library.OnActionHandler.Invoke(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
at MediaPortalApp.FrameMove()
2010-05-23 17:08:21.847578 [ERROR][MPMain(1)]: Exception :exception occured
2010-05-23 17:08:21.848579 [ERROR][MPMain(1)]: site :Void OnAction(MediaPortal.GUI.Library.Action)
2010-05-23 17:08:21.849579 [ERROR][MPMain(1)]: source :MediaPortal
2010-05-23 17:08:21.850579 [ERROR][MPMain(1)]: stacktrace: at MediaPortalApp.OnAction(Action action)
at MediaPortal.GUI.Library.OnActionHandler.Invoke(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
at MediaPortalApp.FrameMove()


Yes, skin is missing. But causes MePo to freeze.
 

dukus

Portal Pro
January 20, 2006
783
748
44
Home Country
Romania Romania
Re: Plugin for MpeInstaller

I made some updates see first post for download :
- separated view for updates
- in online view are shown only tag used 2 or more
- i hope error are better handled
- i add a property for skiners : #mpei.updates this contain all available updates , it can be used like rss feeds from infoservice plugin
 

dukus

Portal Pro
January 20, 2006
783
748
44
Home Country
Romania Romania
Re: Plugin for MpeInstaller

Another update :
Now it is possible to tiger update any where from mp for this you can and to your skin a button

Something like this

<control>
<description>MPEIUPDATE:3664ae64-c5af-4084-baf0-7ecb57b89711</description>
<type>button</type>
<id>59</id>
<posX>71</posX>
<posY>499</posY>
<label>New version</label>
<onright>50</onright>
<onup>7</onup>
<ondown>2</ondown>
<visible>string.equals(#mpei.3664ae64_c5af_4084_baf0_7ecb57b89711.haveupdate,true)</visible>
</control>


For show changelog :

<control>
<description>MPEISHOWCHANGELOG:3664ae64-c5af-4084-baf0-7ecb57b89711</description>
<type>button</type>
<id>59</id>
<posX>71</posX>
<posY>499</posY>
<label>New version</label>
<onright>50</onright>
<onup>7</onup>
<ondown>2</ondown>
<visible>string.equals(#mpei.3664ae64_c5af_4084_baf0_7ecb57b89711.haveupdate ,true)</visible>
</control>
 

Dadeo

Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Re: Plugin for MpeInstaller

    Hi Dukus:

    I hope you know how much I LOVE the new MPEInstaller and this plugin. One big confusion I had was the the xml was called myextensions2.xml AND in MediaPortal.xml there is a section <section name="myextensions2"> but the plugin is MPEI.dll and you need a hover_MPEI.png . It took me a bit to figure that out! I'm slow!

    I have a few questions/suggestions:
    1. Hidden Menu Even in your Blue3/wide skin files I have trouble with the hidden menu. It keeps closing and going back to the list so I can't navigate in it. This seems to happen only when I first open the window so I expect it is while it is updating. After a while, I can keep the menu open and navigate it correctly.
    2. Selectedthumb - We really need to get all plugins to provide usable icons so the icons view is functional. Is there any way to display the #selectedthumb? It should work since they appear in the list and icons view, but it didn't work for me. I do think plugins should use generic icons, not MePo ones that only work with Blue3 (i.e for MPEI and Youtube.fm)
    3. Blue3/wide Skin Files - Did you update the Blue3/wide skin files with the new changes yet? (doesn't look like it :p) I was looking how to add the new changes to aMPed. I tried to follow your new skinners documentation, and it looks very interesting, but I don't really understand how or when to use the MPEI.<ID> I tried entering the button example from the Wiki, but it produces a parsing error message in the xml on <Extension ID>. How do I get it to pick up the extension id of the related extension?
    My personal preference is to add functional options to a context menu rather than buttons for each function. Buttons should imo be for GUI options like Views, Sort, Layouts, show changelog etc. For functions a context menu with Update, Update all, restart MP makes more sense to me.

    EDIT: OK re-reading your post above, I think you meant I can add a button to update MY Extension for aMPed anywhere in the skin, by using the specific extension ID I have used for aMPed. Theoretically, I could add such a button for each plugin, but I don't know if their extension IDs will change. Are they constant?

    For example, for Chefkochs new Alarm Plugin, I could add an update button in the myalarm.xml and users could update the Alarm plugin there, from within GUI? Did I understand correctly?
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    44
    Home Country
    Romania Romania
    Re: Plugin for MpeInstaller

    This plugin it is in a experimental stage, so any idea welcomed.
    The plugin skin file was copied from youtube.fm plugin, the bug with hidden menu was copied too, but i don't have any experience with skinning so any help welcomed. The icon used for extensions are extracted from installer package if the extension is installed, if not it is a field for online icon location.

    For example, for Chefkochs new Alarm Plugin, I could add an update button in the myalarm.xml and users could update the Alarm plugin there, from within GUI? Did I understand correctly?
    Yes, you can notify the user if a new version exist and a button to update it, this option is useful for skinners, with no coding can update the skin in run time.

    EDIT: OK re-reading your post above, I think you meant I can add a button to update MY Extension for aMPed anywhere in the skin, by using the specific extension ID I have used for aMPed. Theoretically, I could add such a button for each plugin, but I don't know if their extension IDs will change. Are they constant?
    A extension should have just a only one id.
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Re: Plugin for MpeInstaller

    Hi Dukus;

    I can't see anything wrong with your skin files so I don't think that is the problem with the hidden menu. It looks like something in the plugin keeps transferring the focus back to the facade as it is updating? Is that possible?

    Thanks for the answers about the new options - can't wait to try it!
     

    Users who are viewing this thread

    Top Bottom