Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pvr] sort equal client channel numbers by name if not sub-channels #7351

Merged
merged 1 commit into from
Jun 29, 2015

Conversation

xhaggi
Copy link
Member

@xhaggi xhaggi commented Jun 28, 2015

If client channel numbers are used for ordering the channels and you have more than one backend, it's possible that you end up with different channels holding the same client channel number. In that case the channels are sorted by its sub channel number which is zero for normal channels. To have a nicely sorted list this changes extends the comparator to compare the names of the channels in case there is no sub-channel number.

@Jalle19 @opdenkamp mind taking a look

If client channel numbers are used for ordering the channels and you have more than one backend, it's possible that you end up with different channels holding the same client channel number. In that case the channels are sorted by its sub channel number which is zero for normal channels. To have a nicely sorted list this changes extends the comparator to compare the names of the channels in case there is no sub-channel number.
@xhaggi xhaggi added the Type: Improvement non-breaking change which improves existing functionality label Jun 28, 2015
@Jalle19
Copy link
Member

Jalle19 commented Jun 28, 2015

Looks fine.

@opdenkamp
Copy link
Member

+1

@xhaggi xhaggi added the Type: Fix non-breaking change which fixes an issue label Jun 29, 2015
@xhaggi xhaggi added this to the Isengard 15.0-rc1 milestone Jun 29, 2015
@xhaggi
Copy link
Member Author

xhaggi commented Jun 29, 2015

it should fix the reported issue http://trac.kodi.tv/ticket/15862

@xhaggi
Copy link
Member Author

xhaggi commented Jun 29, 2015

jenkins build this please

@xhaggi
Copy link
Member Author

xhaggi commented Jun 29, 2015

build errors are related to addons

xhaggi added a commit that referenced this pull request Jun 29, 2015
[pvr] sort equal client channel numbers by name if not sub-channels
@xhaggi xhaggi merged commit 7cf6724 into xbmc:master Jun 29, 2015
@xhaggi xhaggi deleted the pvr-improve-channel-sorting branch July 7, 2015 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue Type: Improvement non-breaking change which improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants