MPChannelUpdater v0.0.0.1: Updates channel sorting/ExternalChannels/ChannelGroups (3 Viewers)

natrlhy

Retired Team Member
  • Premium Supporter
  • August 2, 2006
    324
    0
    Bay Area, CA
    Home Country
    United States of America United States of America
    Hesse actually fixed that in the latest SVN. I had the same problem, but can now type in 247 and actually get channel 247 (TBS, in my case) in my directv lineup. It doesn't add dummy channels, but actually fixes the problem entirely. Just uncheck the "select by index" option and it will work exactly as you are describing.

    Awesome! I am running mediaportal-svn--09-24-2006--02-04-rev10448 ATM and I'm guessing it's in this SVN:

    In the changelog I guess it would be this:

    23/09/2006 [11:27h] mPod added: "Select channel by index" did not work in TVGuide and everywhere for External Channels (thanks to Hesse)

    I'll have to make sure the "select by index" is unchecked with my SVN installation. If this is the case, then this plugin created by Hesse will make things SOOO much easier!

    One other question, and I hope I don't take things too far off topic for this thread, but how fast/slow does one have to enter in channel numbers with the MCE remote? I find that the faster, the better, but this doesn't seem right ;)
     

    Hesse

    Portal Pro
    August 8, 2006
    110
    0
    natrlhy,

    There are a few issues. The fix in the SVN in combination with this plugin makes it simple to do what you and I want which is to change by channel number and populate the TV database appropriately, but there is actually one more small hangup which I mentioned in the thread where I posted the original code that made it into SVN (https://forum.team-mediaportal.com/showthread.php?p=79428#post79428)

    The problem is that in the MP sourcecode, it is hardcoded that channels will only be 2 digits and the timeout for entering digits is 800ms! If you go to the thread, you'll see in the second post an attached file. In that file I changed it so that you can enter 3 digits in the TV guide section with a 2 s timeout I think. However, I have not looked into where it needs to be changed for LiveTV.

    My thought is to make this a configuration option with a setting in the TV configuration section so that the user can choose how many digits before automatically entering the channel. But I won't have a chance to even look at it until probably Wednesday and it would take me a day or two to figure it out because I'd have to add to the configuration section. If we could get a dev to do it, I'm sure it would be much easier for them.
     

    natrlhy

    Retired Team Member
  • Premium Supporter
  • August 2, 2006
    324
    0
    Bay Area, CA
    Home Country
    United States of America United States of America
    Hesse,

    Thank you for the clarification.

    I will be looking out for your updated code and modify accordinly to test the channel changing to the nearest match if the channel entered is invalid.

    I just confirmed that the SVN I'm running (rev10448) DOES work after unchecking the following:

    Run "Setup MediaPortal"
    Televsion: Uncheck "Select channel by index"
     

    Hesse

    Portal Pro
    August 8, 2006
    110
    0
    I'm getting DirecTV installed today, I'll have to try this out. Good timing!

    Me too. I just got DirecTV a couple of weeks ago, that's why I started looking into these external channels. Next up is trying to get serial control of the D11-500 working...
     

    natrlhy

    Retired Team Member
  • Premium Supporter
  • August 2, 2006
    324
    0
    Bay Area, CA
    Home Country
    United States of America United States of America
    Hesse,

    opusnut worked out some bugs in scoops DirecTV_new serial plugin that was more generic. It is working flawlessly for me. I have the HTL-HD receiver from DirecTV.

    https://forum.team-mediaportal.com/showthread.php?p=76279

    I do not know if it's OK for me to post my working plugin but I would be glad to share it. scoop wanted to do more testing and he will upload it to the main download section but I'm just not sure how this works with sharing other peoples code, etc.
     

    Dale#1976

    Portal Pro
    September 21, 2006
    75
    0
    Home Country
    Canada Canada
    Hello Hesse:

    Thank you for the wonderful plugin. If I can get it working then that will solve a lot of problems.

    Unfortunately I run into an error when I try to configure the plugin. Here is the error dump:


    ************** Exception Text **************
    System.TypeLoadException: Could not load type 'MediaPortal.Util.Config' from assembly 'Core, Version=1.0.2375.18796, Culture=neutral, PublicKeyToken=null'.
    at MediaPortal.Util.MPChannelUpdater.Open()
    at MediaPortal.Util.MPChannelUpdaterSettings..ctor()
    at MediaPortal.Util.MPChannelUpdaterConfiguration..ctor()
    at MediaPortal.Util.MPChannelUpdaterPlugin.ShowPlugin()
    at MediaPortal.Configuration.Sections.PluginsNew.itemConfigure_Click(Object sender, EventArgs e)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    Configuration
    Assembly Version: 1.0.2375.32811
    Win32 Version: 1.0.2375.32811
    CodeBase: file:///C:/Program%20Files/MediaPortal/Configuration.exe
    ----------------------------------------
    Core


    As you can see, I am using the lastest 'stable' update ver. 2.0.0.0.

    Maybe I should update to the latest SVN version? From reading this forum, it seems it may solve other problems as well. I'm always reluctant to stray from the stable versions only because I am a complete novice with MP.

    Any suggestions?

    Thanks ... Dale
     

    Hesse

    Portal Pro
    August 8, 2006
    110
    0
    Hi Dale,

    It looks like it can't fine the namespace that I put it in. Just to be sure, you put both the MPChannelUpdater.dll and the System.Data.Sqlite.dll in the \plugins\windows directory?

    Can anyone else verify that they can load the configuration in the plugin?

    I'm using an SVN from 9/20 I believe, so I can't say if it will work with 0.2.0.0 because I compiled it with a later release, but there really isn't anything in the plugin that needs any new MP stuff unless the configuration of plugins has changed since that version.
     

    Hesse

    Portal Pro
    August 8, 2006
    110
    0
    Hesse,

    opusnut worked out some bugs in scoops DirecTV_new serial plugin that was more generic. It is working flawlessly for me. I have the HTL-HD receiver from DirecTV.

    https://forum.team-mediaportal.com/showthread.php?p=76279

    I do not know if it's OK for me to post my working plugin but I would be glad to share it. scoop wanted to do more testing and he will upload it to the main download section but I'm just not sure how this works with sharing other peoples code, etc.

    natrlhy,

    I saw your posts over in that thread and it looks good. What I've read is that the commands have changed from the D10 to the D11 so that shouldn't be too hard because actually when I look at the logs for the "new" serial plugin, it successfully talks to the receiver, it just doesn't change channels.

    Maybe you could ask again about getting the code uploaded so I could try it out or get the authors permission to send it to me :). I'm going to go over there to post, I just haven't gotten around to it yet.

    Thanks,

    Jesse
     

    Dale#1976

    Portal Pro
    September 21, 2006
    75
    0
    Home Country
    Canada Canada
    Hello again:

    I just did a complete install from scratch and updated the install with the lastest 'stable' version which is 0.2.0.4. I have received the same error as I indicated a few days ago. I am reluctant to use an SVN to update because I did that yesterday and ran into a few problems that I couldn't get around.

    Anyway, I used Zap2It to download and create my EPG. Is there a chance that it creates a file that is slightly different than the standard database, thus giving an error when I run your program?

    If that is not the case then perhaps I should just wait for the next 'stable' update before trying your plugin again.

    Anyone had success on a channel listing created by Zap2It?

    Any assistance would be appreciated.

    Thanks .. Dale
     

    Users who are viewing this thread

    Top Bottom