Wrong channel-order
#1
Hey guys,

since kodi 15, the channel order is gone. I want to have the order I made in my TVserver-backend.
Is there any way to get it back?

CU
mts
Reply
#2
I'm having this issue as well. I also noticed that "Use channel numbers from backend" ignores the numbering that I created for my channels and uses the Major channel number instead. Ex. PBS and PBS Kids is 5.1 and 5.2 so if I "Use channel numbers from backend" I'll have two channel 5's. I don't care about that so much as having the channels in the correct order, but I wasn't sure if the two were related.
Reply
#3
As it seems that no one cares about this problem I want to fix it myself.
Where will I find the sources of the plugins?
Reply
#4
My understanding is that the MediaPortal plugin that allows the Kodi client to work does not provide information about the rearranged channel order in the TV server. I suspect this is where you might need to start, although having a look at how the plugin expects this information would also be necessary.
Reply
#5
I just checked the TvServer plugin.
Unfortunately the plugin returns the channels in the right order to the client.
A returnString looks like this "6324|ProSieben MAXX|Outlander|20:15-22:25|The Descent 2|22:25-00:15|False"
I could fake the challenId (first field) to an increasing number, but I have no idea if kodi uses the channel ID for something.
Reply
#6
I haven't changed anything in the plugin code between 14.x and 15.x, so if channel sorting is suddenly broken (without assigned channel numbers), it must be some change in Kodi itself.
If backend order is enabled and sort by channel number is disabled, Kodi should follow the order in which the PVR addon delivers the channel list.
This is for the MediaPortal addon always the sorting order from the "All Channels" group.
I know that MediaPortal can have a different ordering for different groups but that is not supported by Kodi.

As soon as I have more time, I will check what broke the original behavior.
Developer of the MediaPortal PVR addon and retired developer of the Argus-TV PVR-addon.
http://www.scintilla.utwente.nl/~marcelg/xbmc
Reply
#7
Quote:I know that MediaPortal can have a different ordering for different groups but that is not supported by Kodi.
But that is exactly what I am looking for and how it worked under kodi 14.x

Your plugin returns tvChannels by: ListTvChannels:Group
Is kodi ignoring the group parameter?
If kodi would use the group-parameter it would get the sorting from each group as I would like to see it.
Is kodi maybe reordering?
Reply
#8
"If backend order is enabled and sort by channel number is disabled" -> I don't see this options.
I only have "Use channel order from backend(s)" and "Use channel numbers from backend"
Reply
#9
I meant:
"Use channel order from backend(s)" => Enabled
"Use channel numbers from backend" => Disabled

If you enable both, Kodi will sort on channel number, so that only works when all channels at the backend side have a proper number (and not the default 10000).
Developer of the MediaPortal PVR addon and retired developer of the Argus-TV PVR-addon.
http://www.scintilla.utwente.nl/~marcelg/xbmc
Reply
#10
I checked your plugin with a connected kodi-client.
kodi is requesting all channels by ListTvChannels and it is requesting the channels for each group, so there must be some reordering inside kodi.

Where can I find the client code? Is there a git-repository as well?
Reply
#11
(2015-09-08, 22:20)margro Wrote: I meant:
"Use channel order from backend(s)" => Enabled
"Use channel numbers from backend" => Disabled

If you enable both, Kodi will sort on channel number, so that only works when all channels at the backend side have a proper number (and not the default 10000).

That is exactly my setup, but the channels are not ordered as your plugin returns them.
Reply
#12
I rechecked the ordering and it is 100% ordered by channelID (1st return-field)
Reply
#13
The pvr.mediaportal.tvserver addon code is hosted in the Kodi-pvr github repository.
The C++ function that fetches the channel list is cPVRClientMediaPortal::GetChannels()
(See https://github.com/kodi-pvr/pvr.mediapor...l.cpp#L552)

This will call the TVServerKodi plugin function "ListTVChannels".

The real C# code that fetches the channels from the TV Server can be found here:
https://github.com/margro/TVServerXBMC/b...ce.cs#L661
Developer of the MediaPortal PVR addon and retired developer of the Argus-TV PVR-addon.
http://www.scintilla.utwente.nl/~marcelg/xbmc
Reply
#14
Hmm, but the channel id is the unique identifier for the backend (the record id in the TV server database).
Kodi should never sort on id's...
Developer of the MediaPortal PVR addon and retired developer of the Argus-TV PVR-addon.
http://www.scintilla.utwente.nl/~marcelg/xbmc
Reply
#15
I uploaded a snippet of my kodi-logs: http://pastebin.com/R6g9GUVT

As you can see the channel order is ok at this point (you can see that it is not ordered by channelID).
The reordering must happen somewhere else
Reply



Logout Mark Read Team Forum Stats Members Help
Wrong channel-order0
This forum uses Lukasz Tkacz MyBB addons.