Plugin: MP2Extended (1 Viewer)

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
    Probably you should restart the server and try again. Probably it had much to do during the first startup?! I don't know.
    I did 2 restarts... Same Errors
    Recovered from the backup I made prior to installing the one from post #1, All back to normal
    There is something about that build......
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I did 2 restarts... Same Errors
    Recovered from the backup I made prior to installing the one from post #1, All back to normal
    There is something about that build......
    The logs don't tell me that much... I just extended the interfaces, so maybe you haven't updated the interface on the client side? It is just a guess
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    You can leave it case sensitive, I will just fix the issues when I get to them. This one I missed so thanks for spotting.

    Yes, it should be the tt number, I will double check to see why it didnt work. It looked from the url that it was another format.

    Audioid shouldnt be null, will check why I got that.

    I can upload my new MP2 database tomorrow so you easier can reproduce my issues.

    Btw. Should it work with the MPext. Provider for tv so I can use the MP1 tv server on my HTPC and only use MP2 server in a virtual machine on my laptop? I mean together with MPExt 2 for TAS. I want to avoid installing MP2 with tv server part on my HTPC for now. And I cant test TAS without a tv card on my laptop.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Btw. Should it work with the MPext. Provider for tv so I can use the MP1 tv server on my HTPC and only use MP2 server in a virtual machine on my laptop? I mean together with MPExt 2 for TAS. I want to avoid installing MP2 with tv server part on my HTPC for now. And I cant test TAS without a tv card on my laptop.
    morpheus pointed out that I forgot to implement the Interface changes in the MPExtended Provider. I have to do that anyway. So I will do that and than you can test it with MPExtended^^
    I just implemented Radio today :) So you can test both. Next is Schedules oO
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Just checked the source and the MPExtended provider is on the client side. So I don't know what exactly morpheus wanted to be extended on the MPExtended side in regards to my interface extensions.
    In short: you need NativeTv, sorry for that.

    Long answer:
    If you use nativeTv it is like this:
    MP2 Server with NativeTv <----> NativeTvProvider (ClientSide) <---> SlimTvClient (ClientSide)
    If you use MPExtended it is like this:
    MPExtendedProvider (ClientSide) <---> SlimTv (ClientSide)
    My changes are on the bold part. So sorry for the bad news.

    I want to avoid installing MP2 with tv server part on my HTPC for now. And I cant test TAS without a tv card on my laptop.
    I understand that. I use a SAT>IP/Cable>IP Tuner for that. I don't know if you have access to such a device. DVBViewer RecordingService provides SAT>IP Tuners, but this woul require to install that on your HTPC.

    Another thing which could work is to setup IPTv. But I don't know if there are some free services...
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I can upload my new MP2 database tomorrow so you easier can reproduce my issues.
    Probbaly a good idea (y)

    And could you provide me the link for teh FanArt with the wrong Aspect ratio?
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Thanks for that. :)

    Can you also give me pointers of what files to copy from the MPExt tv plugin? In plugin There are folders for both client and server and when browsing through posts in forum it seems that one shouldnt replace the server side files.

    You have made huge progress the last couple of weeks. How much will you be able to work on this when school starts?[DOUBLEPOST=1445185480][/DOUBLEPOST]Wrote when you posted. Ok so I will not bother about MPExt tv plugin. Will check fanart url later.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Can you also give me pointers of what files to copy from the MPExt tv plugin?
    Just for your information: It looks like the server part just extends the Fanartprovider and enables you to get Tv Logos :)

    You have made huge progress the last couple of weeks. How much will you be able to work on this when school starts?
    Good questions and hard to answer.
    TAS is almost completely implemented. Some Recording functions are missing and most important Schedules :)

    Don't know what you miss in the MAS? Most of it is bug finxing right now^^ WSS is also in pretty good shape.
    WifiRemote needs some more love^^
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Hmm I justed checked google and there doesn't seem to be a nice solution...
    http://stackoverflow.com/questions/13230414/case-insensitive-access-for-generic-dictionary

    Actually I don't know what I should do now... Two options:
    1) leave it case sensitive
    2) put the dirty hack into a function and apply it to all calls.

    Opinions?
    I didn't check the link yet. But you can create a dictionary with passing a StringComparer.InvariantCultureIgnoreCase. Then the access by a string key is case insensitive.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I didn't check the link yet. But you can create a dictionary with passing a StringComparer.InvariantCultureIgnoreCase. Then the access by a string key is case insensitive.
    Thank you for jumping in :)
    In fact I know that, but I the Dictionary is created by our HTTPServer, so for your suggestion I would need to modify the HTTPServer.

    With Hack is was talking about these two methods:
    1) using LINQ
    Code:
    var item = MyDictionary.Where(x => x.Key.ToLower() == MyIndex.ToLower()).FirstOrDefault();
        if (item != null)
        {
            TheValue = item.Value;
        }
    2) Copy the case sensitive dictionary to a new case insenitive dictionary
    Code:
    MyDictionary = new Dictionary<string, int>(
      MyDictionary, StringComparer.OrdinalIgnoreCase);

    Don't know what is better... Probably 1) implemented as a helper function?

    current code looks like this:
    Code:
    public dynamic Process(IHttpRequest request)
      {
      HttpParam httpParam = request.Param;
      string channelId = httpParam["channelId"].Value;
     

    Users who are viewing this thread

    Top Bottom