Announcing MPChannelUpdater:
Current Version: 0.0.0.1
https://www.team-mediaportal.com/files/Download/SystemUtilities/MPChannelUpdater/
The MP channel configuration is very problematic. Channels are not sorted by channel number by default. Additionally, it is very difficult to set channels to external inputs since each channel has to be edited individually to set the external input type and the external channel number. Also, the channels in groups are not sorted by channel number and it is very difficult to fix in the MP editor.
This plugin attempts to solve all of the above problems. Channels can be easily sorted by channel number in the MP database. The iSort field in the TV database is updated based on the ascending sort order for the channel number. If the channel is an external channel, the channel number is read from the ExternalChannel field of the database.
A function was written to allow all channels to be set to external channels with the same external input type. This is typically the case for satellite TV users in the US with DirecTV or other provider and a settop box (STB).
Finally, channels in the custom groups are not sorted in any fashion, therefore a function was written to write the iSort index from the channels table to the tblGroupMapping. This should be default in MediaPortal anyways.
Current Version Features:
+ Configuration control through a MediaPortal plugin interface and a
windows form.
+ Ability to sort regular channels or extneral channels by channel number
+ Ability to set all channels to specific external input type
+ Ability to sort channels in groups by channel number
Future Work:
+ Maybe some day in the future I will try to implement these changes directly
in the MediaPortal source code.
Known Issues:
+ If a user has edited the TV database in the MP configuration before running
this plugin, any updates will likely fail. I believe that MP is locking
the TV database. Therefore, this plugin can only be run if there has been
no previous access to the TV database.
+ Code is not commented too well.
Current Version: 0.0.0.1
https://www.team-mediaportal.com/files/Download/SystemUtilities/MPChannelUpdater/
The MP channel configuration is very problematic. Channels are not sorted by channel number by default. Additionally, it is very difficult to set channels to external inputs since each channel has to be edited individually to set the external input type and the external channel number. Also, the channels in groups are not sorted by channel number and it is very difficult to fix in the MP editor.
This plugin attempts to solve all of the above problems. Channels can be easily sorted by channel number in the MP database. The iSort field in the TV database is updated based on the ascending sort order for the channel number. If the channel is an external channel, the channel number is read from the ExternalChannel field of the database.
A function was written to allow all channels to be set to external channels with the same external input type. This is typically the case for satellite TV users in the US with DirecTV or other provider and a settop box (STB).
Finally, channels in the custom groups are not sorted in any fashion, therefore a function was written to write the iSort index from the channels table to the tblGroupMapping. This should be default in MediaPortal anyways.
Current Version Features:
+ Configuration control through a MediaPortal plugin interface and a
windows form.
+ Ability to sort regular channels or extneral channels by channel number
+ Ability to set all channels to specific external input type
+ Ability to sort channels in groups by channel number
Future Work:
+ Maybe some day in the future I will try to implement these changes directly
in the MediaPortal source code.
Known Issues:
+ If a user has edited the TV database in the MP configuration before running
this plugin, any updates will likely fail. I believe that MP is locking
the TV database. Therefore, this plugin can only be run if there has been
no previous access to the TV database.
+ Code is not commented too well.