home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPChannelUpdater v0.0.0.1: Updates channel sorting/ExternalChannels/ChannelGroups
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Hesse" data-source="post: 80283" data-attributes="member: 23814"><p>natrlhy,</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>Sorry for long winded explaination. Hope it works.</p><p></p><p>Jesse</p></blockquote><p></p>
[QUOTE="Hesse, post: 80283, member: 23814"] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPChannelUpdater v0.0.0.1: Updates channel sorting/ExternalChannels/ChannelGroups
Contact us
RSS
Top
Bottom