This will add the channel and attach the appropriate EPG number from the selected provider template if it exists, else the EPG is blank.
Also, it will try and add it into the appropriate channel group, like Movies if you have one; if not, it is added to the first group.
After adding, the channel list is re-sorted if it was previously sorted; and a listings update is automatically triggered.
Parameters
Parameter
Description
Integer nChannelID
The unique channel ID of the channel you wish to add.
Returns
True if channel successfully added, False if otherwise.
Examples
if( messageBox( "Do you wish to add Sky One channel to your lineup", "Alert", knMBYesNo | knMBIconQuestion | knMBDefault1 ) == knMBReturnYes ) { if( !app.getChannelManager().addChannelFromID( 65 ) ) { alert("Sorry the channel could not be added."); } }