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

Hesse

Portal Pro
August 8, 2006
110
0
This won't work with the Zap2It program I don't think. Does the Zap2It program actually put data into the TV database? When I tried it, it didn't seem like it. The method i use is to import the channels from the XMLTV generated file (which is from Zap2it in the US).

I'll try installing MP 0.2.0.4 in a different directory and running the plugin to see if I can recreate the crash.

Jesse
 

Hesse

Portal Pro
August 8, 2006
110
0
Dale,

I think I found the problem. I installed v0.2.0.0 and I got the same error you were getting. The problem is that in older versions, there are some features that do not exist in the core. For example, I was using the configuration to read the location of the database directory. That feature didn't exist in an older version apparantely.

I compiled a special version for you which should work in the older versions of MP (i.e. not recent SVN). I tested on MP v0.2.0.0 and it successfully entered configuration. The dll is attached.

But I do not think it will work with the Zap2It plugin unless the zap2it plugin populates the TV database with the same data as you would get when you import via XMLTV? Do you see channels when you go to configure the TV section? If not, then this plugin will not help you. I've found that XMLTV works pretty well once you have this plugin to sort channels properly.
 

Dale#1976

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

Thank you for going to the extra effort of creating a version just for myself. I did get into the plugin this time, but I still get an error:


************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at MediaPortal.Hesse.MPChannelUpdater.GetChannelNumbers(Boolean bForceUpdate, Boolean bParseChannelNumber)
at MediaPortal.Hesse.MPChannelUpdater.GetChannelNumbersSorted(Boolean bForceUpdate, Boolean bParseChannelNumber)
at MediaPortal.Hesse.MPChannelUpdater.SortChannels()
at MediaPortal.Hesse.MPChannelUpdaterSettings.buttonUpdateChannels_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

I do see the channel name, channel number which is 250000/520 (for channel 520 etc) standard is 'default' and type is 'External' because I am using a satelite receiver. Everything looks pretty normal there and the EPG looks as it should.

I'm using Zap2It because I was having trouble getting the EPG to update using the MP configuration. It was so much easier and it automatically updates the EPG automatically.

I guess the bottom line is, Zap2It stores the EPG info in a different manner from what your plugin is looking for. Darn!!! I was looking forward to having my channels in numberical order. Maybe the person who made Zap2It can create a program like yours.

Thank you again for your attempt.

Have a GREAT day ... Dale
 

Hesse

Portal Pro
August 8, 2006
110
0
If you can send me your TV database, I might be able to see where the error is. It looks like its getting hung up on a type mismatch. It might be looking for a string and its getting an int or vice versa. If you can delete all the program information and zip it, it will probably be smaller.

Or I think there's an option to export channel list to save it, then I could try importing , but database would probably be the best.

Thanks
Jesse
 

natrlhy

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

    Hi Jesse,

    I am running the latest SVN (Rev10586) and I get this error when trying to sort.

    My TVdatabase is about 27.2MB so I'm not sure if you need it or not.

    Thanks!
     

    natrlhy

    Retired Team Member
  • Premium Supporter
  • August 2, 2006
    324
    0
    Bay Area, CA
    Home Country
    United States of America United States of America
    I've also found that by going into configuration.exe Television-> TV Channels and clicking on the Channel column, it sorts it pretty well. I don't have all my newly scanned TV channels named right yet, but it does well. This is also reflected in the TV Guide when running MediaPortal.
     

    Dale#1976

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

    Gee ... that was simple .... clicked on the Channel column and instantly my channels were sorted from lowest channel number down to the highest. Exactly the way I wanted it.

    Guess it shows that sometimes we look for more complicated solutions.

    Thank you so much for this instant fix!!

    Dale
     

    natrlhy

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

    Glad it worked for you, too! This is what I have been doing and I like the results. I believe the same holds true if you sort it based on the Name column. Once I get my channel numbers named correctly for my ATSC channels, I'll let you know the results.

    I have a mixture of ATSC channels and External channels, so the internal channel numbers MP uses sorts mine funny, but MUCH less work than doing them one by one.

    You can also select a channel, and drag it up/down the list for quick moving of the channel. Do this as opposed to clicking Up or Down a gazillion times ;)
     

    Hesse

    Portal Pro
    August 8, 2006
    110
    0
    Hi Jesse,

    I am running the latest SVN (Rev10586) and I get this error when trying to sort.

    My TVdatabase is about 27.2MB so I'm not sure if you need it or not.

    Thanks!

    Same error as Dale. Apparantely there is a type mismatch that I'm not catching. If you zip or rar the TV database it should compress significantly. If you could attach to forum (if you have enough space left) I would like to fix this even if its just for my own benefit :). Or if you can't attach, let me know and I can PM you my Gmail address to send it to.

    Thanks
    Jesse
     

    Users who are viewing this thread

    Top Bottom