Suggestions (1 Viewer)

dukus

Portal Pro
January 20, 2006
783
748
46
Usa
Home Country
Argentina Argentina
Please post in this thread, any suggestion or improvement idea.
:D
 

idioteque

Retired Team Member
  • Premium Supporter
  • September 29, 2005
    609
    9
    Home Country
    Netherlands Netherlands
    is it possible to execute an external command like a batch file after installing, and do the same after un-installing?

    If not can this be implemented ?
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    46
    Usa
    Home Country
    Argentina Argentina
    is it possible to execute an external command like a batch file after installing, and do the same after un-installing?

    If not can this be implemented ?

    I think solve yours problem, with a small plugin file. I add support for plugins, see wiki
     

    idioteque

    Retired Team Member
  • Premium Supporter
  • September 29, 2005
    609
    9
    Home Country
    Netherlands Netherlands
    OK thank you,

    Now for some advanced features: :)
    Can I read the config of the installed MP and changes settings or use info of the config

    Example 1: Read path of video shares and add files to that path
    Example 2: Read settings and change settings ?
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    46
    Usa
    Home Country
    Argentina Argentina
    For reading some information from config:
    Ex.: Read all share information : (you may find more MovieShares.cs)

    Code:
    using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))
    {
       string defaultShare = xmlreader.GetValueAsString("movies", "default", "");
            for (int index = 0; index < 20; index++)
            {
              string shareName = String.Format("sharename{0}", index);
              string sharePath = String.Format("sharepath{0}", index);
              string sharePin = String.Format("pincode{0}", index);
    
              string shareType = String.Format("sharetype{0}", index);
              string shareServer = String.Format("shareserver{0}", index);
              string shareLogin = String.Format("sharelogin{0}", index);
              string sharePwd = String.Format("sharepassword{0}", index);
              string sharePort = String.Format("shareport{0}", index);
              string shareRemotePath = String.Format("shareremotepath{0}", index);
              string shareViewPath = String.Format("shareview{0}", index);
    
              string shareNameData = xmlreader.GetValueAsString("movies", shareName, "");
              string sharePathData = xmlreader.GetValueAsString("movies", sharePath, "");
              string sharePinData = MediaPortal.Util.Utils.DecryptPin(xmlreader.GetValueAsString("movies", sharePin, ""));
             }
    }
     

    jburnette

    Portal Pro
    August 24, 2006
    758
    116
    Kentucky
    Home Country
    United States of America United States of America
    dukus,
    I really like the idea and once I got the hang of package creation, it's much easier than having to write a long how-to of where to put all of the files. One problem though, when you click install from within the plugins/mpinstaller screen in MP setup, it doesn't automatically choose the file type MPI. In the filename box it shows "openFileDialog1" with no file type specified.
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    46
    Usa
    Home Country
    Argentina Argentina
    i not forgot, but not really tested with a skin installation, but somebody can confirm it is work we may add.
     

    Users who are viewing this thread

    Similar threads

    Thank you for this tip! I'm moving MP TV Server to a new machine. I installed the 64-bit version and most of the MP firewall rules were set to Public. I couldn't connect to the new TV Server from my old single-seat installation running 32-bit until I changed all MP-related firewall rules on the new machine to Private. Before I did...
    Thank you for this tip! I'm moving MP TV Server to a new machine. I installed the 64-bit version and most of the MP firewall...
    Server and client on modern uptodate Windows 11 desktop. Software is Server and Client version x86 1.38.003 Remote client on...
    Replies
    26
    Views
    3K
    i think info but I'm really not sure
    i think info but I'm really not sure
    When I import new films using Moving Pictures, it takes an incredibly long time for the information to be found and downloaded...
    Replies
    3
    Views
    1K
    Now with Version 1.37 x64 MP is near to perfect with repect to speed, robustness and funtionality. There is just one point where I have an Idea for further improvement. As I am not too interested in advetisments, I am using comskip to mark times of ads, which is normally working, as it should but produces an error when trying to...
    Now with Version 1.37 x64 MP is near to perfect with repect to speed, robustness and funtionality. There is just one point where I...
    Now with Version 1.37 x64 MP is near to perfect with repect to speed, robustness and funtionality. There is just one point where I...
    Replies
    0
    Views
    1K
    Sorted, it is a Rating flag that I have never seen before, silly me !! Cheers Tony
    Sorted, it is a Rating flag that I have never seen before, silly me !! Cheers Tony
    I have just done a clean install of v1.36. Current setup Media Portal 1.36 Titan skin (only classic home) TV Series 4.5.1.737...
    Replies
    1
    Views
    407
    See my reply in the other thread. -- from CyberSimian in the UK
    See my reply in the other thread. -- from CyberSimian in the UK
    Any idea where can I get the Windows7 installation software for this AverMedia A323AF card. I found the drivers for the A323 which...
    Replies
    1
    Views
    2K
    Top Bottom