Looking at the MythTV addon code I think it could be modified to allow "Radio" stations to be moved to the Radio section as a workaround. Here is what I'm thinking:
1. In the channel configuration add a tag to the channel name such as "[RADIO]". for example if you have a channel called "WLS-FM" rename it to "WLS-FM[RADIO]"
2. Update the Addon code to have the IsRadio() and Name() function look for this tag and handle it appropriately.
3. The IsRadio() function could be like:
cpp:
bool MythChannel::IsRadio() const
{
if (m_channel)
{
std:tring theName = m_channel->channelName;
std:tring keyword = "[RADIO]";
std:ize_t found_radio = theName.find(keyword);
if (found_radio != std:tring::npos) {
return true;
}
else {
return false;
}
}
else {
return false;
}
}
This would look for the tag and return true if it's found.
4. Name() as:
cpp:
std:tring MythChannel::Name() const
{
if (m_channel)
{
std:tring theName = m_channel->channelName;
std:tring keyword = "[RADIO]";
std:ize_t found_radio = theName.find(keyword);
if (found_radio != std:tring::npos) {
return theName.replace(found_radio, keyword.length(), "");
}
else {
return theName;
}
}
else {
return "";
}
//return (m_channel ? m_channel->channelName : "");
}
This would look for the tag and remove it so that the name would get sent to Kodi as the base name without the tag.
Unfortunately I haven't been able to compile test versions yet to see how it will work. I'll keep working on getting a development environment setup, but in the meantime does anyone with a working dev setup want to give it a whirl.
Dave