Posts: 1,016
Joined: Sep 2012
Reputation:
55
janbar
Posting Freak
Posts: 1,016
2018-10-08, 08:03
(This post was last modified: 2018-10-08, 08:08 by janbar.)
Reading the track ticket, your issue relates creating a channel group within Kodi. Unfortunately Kodi doesn't store the created group as I remember. I don't know why but it is like that. If you need to group channels you can do it with myth setup: The addon handles channels group from the backend.
But having a working channel group management in kodi itself will be great in my opinion. I could help to resolve the issue.
Posts: 1,016
Joined: Sep 2012
Reputation:
55
janbar
Posting Freak
Posts: 1,016
2018-10-08, 08:39
(This post was last modified: 2018-10-08, 08:51 by janbar.)
I just tried to create a channel group named 'Favoris' then stop and restart Kodi.... The new group created within Kodi exists after the restart and it contains the added channels. So the persistance of channels group seems to work in Kodi, at least with Kodi-18 and the pvr addon MythTV 5.8.7.
But for my case I have only 35 channels from my backend and loading them from backend is very fast. I seen you have more than 600 channels and I suspect Kodi to load its internal channels group in a manner asynchronously and before receiving the pvr response for GetChannels(): Regarding your log from the ticket I didn't see the pvr response of the call GetChannels().
Posts: 379
Joined: Dec 2014
Reputation:
3
I'll do more testing. At some point in the distant past (maybe mythtv 0.27 or 0.28, I'm on 29 now), KODI didn't support getting myth channel favorites and creating groups from them. As such, I let KODI sync the list of all available channels from the backend once and then manually created a channel list (Charter Digital) and put maybe 60 out of the 600 available channels in it. Up until around KODI 18 alpha 3, this still continued to work. Now, every time I reboot the list of channels in my custom channel group gets deleted. Perhaps this is happening because the built in 'All Channels" group has the channels deleted and then added back? I have the setting so that the channels and channel groups are not sync'd from the backend. What I have been doing to "fix" the problem after a reboot is to copy a backup of the TV32 database back onto my KODI box and the reset the guide data.
I will turn the sync back on and see if it now correctly pulls my channel favorites from the myth backend, which would actually be preferable.
Posts: 379
Joined: Dec 2014
Reputation:
3
So I did some testing tonight. The KODI PVR channel groups for the mythtv plugin don't really seem to be channel groups from the mythtv backend but instead seem to be the sources defined in mythtvsetup. I created a new channel group in mythtv called Kodi but the only channel group (other than All Channels) KODI sees is Charter Digital which is a video source. Unfortunately for me, that contains all 600+ channels from my cable provider but I only get some of those and only want to browse/watch a small fraction.
I'm guessing the behavior regarding what mythtv vs KODI calls a channel group is expected?
Posts: 379
Joined: Dec 2014
Reputation:
3
For now, I solved this by using SchedulesDirect to only have the channels I get and actually watch sent to MythTV.
Long term, I think it would make sense for the pvr.mythtv plugin to actually pull channel groups defined in MythTV instead of video sources, which is what it seems to do now.
Posts: 137
Joined: Feb 2017
Reputation:
4
2018-10-09, 23:39
(This post was last modified: 2018-10-09, 23:42 by disaacso.)
.if you are only using channel groups to get rid of channels you don't want then use mythweb to make those channels invisible. the schedulesdirect method gets screwed up when your channel lineup changes. This also allows you to reorder channels in a more logical way
Posts: 1,016
Joined: Sep 2012
Reputation:
55
janbar
Posting Freak
Posts: 1,016
2018-10-10, 09:35
(This post was last modified: 2018-10-10, 09:36 by janbar.)
Yes the groups made by the addon are based on sources. The reason is backend API doesn't have method to get groups made by mythfrontend.
So for your case the only solution is using KODI internal group.
Posts: 379
Joined: Dec 2014
Reputation:
3
The MythWeb channel visible has promise. I use the channel groups in MythTV to keep my usually watched channels in a group and then switch to more or all channels on the rare occasion I want to watch ESPN or similar.
I assume it would be a task for the MythTV developers to add API calls for getting the channels in the backend channel groups?
Posts: 1,016
Joined: Sep 2012
Reputation:
55
janbar
Posting Freak
Posts: 1,016
2018-10-10, 19:01
(This post was last modified: 2018-10-10, 19:14 by janbar.)
Yes it is.
The related table is channelgroup.
New features to the MYTH API were available for the next major release only. So for instance it would be preferable to resolve the issue here.