MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2006-09-30, 05:53   #31 (permalink)
Retired Team Member
 
natrlhy's Avatar
 
Join Date: Aug 2006
Location: Bay Area, CA
Posts: 324
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default TVDatabaseV21 Attached

Hi Jessi,

I have emailed you my TVDatabase file.

Thanks!
Hy
natrlhy is offline   Reply With Quote
Old 2006-09-30, 06:01   #32 (permalink)
Portal Member
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by natrlhy View Post
Hi Jessi,

I have emailed you my TVDatabase file.

Thanks!
Hy
Got it, will take look at it now.

Jesse
Hesse is offline   Reply With Quote
Old 2006-09-30, 06:33   #33 (permalink)
Portal Member
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts


Default

natrlhy,

Ok, I see the problem now. Maybe Dale has a similar problem. First off, I attached an updated MPChannelUpdater.dll file to this email. Could you try it out to verify that it doesn't crash for you. If it works, tomorrow I will update source code to 0.0.0.2 and release.

There were a few problems. By default, I was trying to parse the channel number from the name. I've changed to just use the channel number in the database as default when sorting channels.

By parsing channel number, I mean if the channel name was "512 MAX", I was trying to parse "512" from it using a regular expression. It works for that case. However, in your database, there was one channel named "KCSMMHZ" in which the channel number would parse to "". When I tried to convert that to an integer, it would crash. I've updated the code to have a default channel 0 and a try/catch statement, so if it cannot parse a channel number it defaults to 0.

Now, another problem will occur for your digital channels. My regular expression for parsing channels is setup to only parse integers basically. So "11-1 KNTVDT" parses to "1" the way I have it setup now. I will have to think about how to handle that case. I can parse the channel number part with a different regular expression, but I don't know how I will sort it quite yet. For now, it is only using the channel number that is already populated in the database when you hit sort.

Sorry for long winded explaination. Hope it works.

Jesse
Attached Files
File Type: rar MPChannelUpdater.rar (11.2 KB, 59 views)
Hesse is offline   Reply With Quote
Old 2006-09-30, 06:55   #34 (permalink)
Retired Team Member
 
natrlhy's Avatar
 
Join Date: Aug 2006
Location: Bay Area, CA
Posts: 324
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

Your explination makes sense to me.

I'm running some system CPU and memory stress tests (my system crashes A LOT) so I will test this sometime during the weekend.

I'm wondering how this plugin will differ from doing a basic sort when clicking on the Channel column in the TV Channel listing in the configuration.exe

Just curious. I hope your plugin enhances or beats out this built in "feature"
natrlhy is offline   Reply With Quote
Old 2006-09-30, 07:11   #35 (permalink)
Portal Member
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Eventually I will integrate my plugin with the MP source code. There were a couple of issues that this plugin was to address. As you pointed out you can sort channels by the channel column, BUT the channel number has to be populated in the database.

If you're not using the Zap2It plugin, that isn't automatically done. In fact, it didn't automatically happen for me for some reason, maybe I didn't wait long enough after it downloded. If you want to set all of your channels to external channels, its not so easy right now with default MP setup.

The other thing is that it will automatically sort the channels in groups as well. I don't think that can be done easily now, but is easily added to the source code as soon as I get some time to do that. For now, its in the plugin.

Jesse
Hesse is offline   Reply With Quote
Old 2006-09-30, 07:26   #36 (permalink)
Retired Team Member
 
natrlhy's Avatar
 
Join Date: Aug 2006
Location: Bay Area, CA
Posts: 324
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

I have found that you have to wait at least 20-30 minutes in order for the Zap2it plugin to work it's full magic of populating the TV Channel database. I have observed it several times and one must be patient.

I will be nice when MP can do this for any country and in any configuration
natrlhy is offline   Reply With Quote
Old 2006-09-30, 16:40   #37 (permalink)
Portal Member
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I submitted a patch at sourceforge to add support for group sorting.

http://sourceforge.net/tracker/index...97&atid=647927

Then hopefully we can just add a button or something to the group configuration screen to automatically perform this function.

Then I will need to add a method to automatically change all channels to external with correct sorting and we won't need this plugin anymore!

Jesse
Hesse is offline   Reply With Quote
Old 2007-01-16, 10:27   #38 (permalink)
Portal User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default error tying to config: System.MethodAccessException: MediaPortal.Util.Config.Get(Dir)

Installed into the >plugin>process folder, opened mpsetup config app to config it and the plugin crashed when launched. don't know how much of the crash file is needed so I'll put a couple of pages:
I'm a newbie and am still trying to get MP working/functional, not yet though.

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.MethodAccessException: MediaPortal.Util.Config.Get(Dir)
at MediaPortal.Util.MPChannelUpdater.Open()
at MediaPortal.Util.MPChannelUpdaterSettings..ctor()
at MediaPortal.Util.MPChannelUpdaterConfiguration..ct or()
at MediaPortal.Util.MPChannelUpdaterPlugin.ShowPlugin ()
at MediaPortal.Configuration.Sections.PluginsNew.item Configure_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs 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(Mes sage& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(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.2548.23843
Win32 Version: 1.0.2548.23843
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Configuration.exe
patla is offline   Reply With Quote
Old 2007-02-03, 18:42   #39 (permalink)
Portal Member
 
Join Date: Mar 2006
Location: Italy
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post

Country:


Send a message via ICQ to Fabolus Send a message via MSN to Fabolus Send a message via Yahoo to Fabolus
Default

Same error for me, help please
__________________
Taf209
Fabolus is offline   Reply With Quote
Old 2007-12-29, 13:30   #40 (permalink)
Portal Member
 
Join Date: Feb 2007
Age: 38
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts


Default

why did you abandon this plugin? is someone out there capable of creating something like this?

man
carshowman is offline   Reply With Quote
Reply

Bookmarks

Tags
channel, mpchannelupdater, updates

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
KNC 1 DVB-C / cannot tune channels lutz General Support 15 2006-10-01 12:04
Technotrend DVB-S no LNB switch Erbsenkopp General Support 0 2006-08-03 10:04
Technotrend Budget 1500 CI no LNB switch Erbsenkopp General Support 0 2006-08-03 09:46
Tuning-problem - FireDTV - Stockholm-Nacka alek01 Installation, configuration support 2 2006-07-11 00:06
Xmltv set big hassle for a newb Anonymous Tips and Tricks 38 2004-12-18 21:09


All times are GMT +1. The time now is 08:35.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden