2013-02-26, 20:44
http://en.wikipedia.org/wiki/Digital_subchannel
Can support be added to PVRDatabase to include subchannels, so that you dont end up with say 3 channel 8's in the guide, instead you would have 8.1, 8.2, 8.3 and so forth?
I tried looking at this myself, http://forum.xbmc.org/showthread.php?tid=157487
But am not sure how simply changing the required fields from integers to varchar(10) (to match mythtv's database) would affect other PVRs.
I thought a simple change like:
might work... but i wasn't sure what the following did/how it worked:
" int iChannelNumber = m_pDS->fv("iChannelNumber").get_asInt()" here is for, or how that would need to be changed....
along with:
the (unsigned int) after the "," after channel (or what the m_pDS->fv does for that matter)
PVRChannelGroupMember newMember = { channel, (unsigned int)m_pDS->fv("iChannelNumber").get_asString() };
So i hit up IRC #xbmc-pvr
and opdenkamp suggested to add a subchannel type.
but I don't know enough about coding and how things interact - to know where to begin.
Which is why I made this a feature request. But i would be glad to work on it if someone were to help point me the right directions, but i may end up having quite a few questions.
Can support be added to PVRDatabase to include subchannels, so that you dont end up with say 3 channel 8's in the guide, instead you would have 8.1, 8.2, 8.3 and so forth?
I tried looking at this myself, http://forum.xbmc.org/showthread.php?tid=157487
But am not sure how simply changing the required fields from integers to varchar(10) (to match mythtv's database) would affect other PVRs.
I thought a simple change like:
Code:
diff PVRDatabase.cpp PVRDatabase-var.cpp
83c83
< "iClientChannelNumber integer, "
---
> "iClientChannelNumber varchar(10), "
99c99
< // "iClientChannelNumber integer,"
---
> // "iClientChannelNumber varchar(10),"
123c123
< "iChannelNumber integer"
---
> "iChannelNumber varchar(10)"
377c377
< PVRChannelGroupMember newMember = { channel, (unsigned int)m_pDS->fv("iChannelNumber").get_asInt() };
---
> PVRChannelGroupMember newMember = { channel, (unsigned int)m_pDS->fv("iChannelNumber").get_asString() };
724c724
< int iChannelNumber = m_pDS->fv("iChannelNumber").get_asInt();
---
> int iChannelNumber = m_pDS->fv("iChannelNumber").get_asString();
" int iChannelNumber = m_pDS->fv("iChannelNumber").get_asInt()" here is for, or how that would need to be changed....
along with:
the (unsigned int) after the "," after channel (or what the m_pDS->fv does for that matter)
PVRChannelGroupMember newMember = { channel, (unsigned int)m_pDS->fv("iChannelNumber").get_asString() };
So i hit up IRC #xbmc-pvr
and opdenkamp suggested to add a subchannel type.
but I don't know enough about coding and how things interact - to know where to begin.
Which is why I made this a feature request. But i would be glad to work on it if someone were to help point me the right directions, but i may end up having quite a few questions.