Jump to content

Moving live tv channels causes channel order to totally change


Recommended Posts

Posted

Hello,

This has happened for as long as I've used emby but I just cannot deal with it anymore, hence asking for help here.

There is something very strange with my live tv channel ordering. When I move one channel from one position to another one, it causes part of the channel list to be totally messed up.

Here is an example:

Before:

Screenshot2024-05-22105745.png.c998cdc118938995491a2305d42ad333.png

I move the channel DK4 Danmark FHD DK to one position above TV 3 MAX FHD DK

Screenshot2024-05-22105943.png.2e5d2290af29511460217eb3543d1987.png

You can see that both DK4 Danmark FHD DK and TV 3 MAX FHD DK have moved somewhere else!

They are actually now higher in the list, not even next to each other!

Screenshot2024-05-22110109.png.84a5fc41ed9b27a601f981e0c0baf514.png

This is driving me crazy as it is making organizing my channels a nightmare.

Can you please have a look?

Logs attached

Thank you

Axel

embyserver.txt

  • Like 1
Posted

Just adding that in the past I could more or less fix these things by manually editing livetv.xml but it looks like this file is not used anymore in newer versions of Emby? (Last update for mine was back in January - and I made a lot of changes to my channel list since then).

Posted

Another behavior I observed on this topic: if I add a tuner, the channels from this tuner will either get added at the very end (good behavior), but for some tuners, they get added mixed with the channels already present (bad behavior).

 

Posted

My channel list is fully corrupted now it seems - I cannot move a channel without my whole list getting in a random order. Would be great if anyone had any suggestion. So far, only starting again from a clean install seems to be an option, and I really want to avoid that. Thanks in advance!

Posted

I played with the API and saw that the SortOrderIndexes are a bit all over the place - they sometimes jump from for example 100 to 110 - I think it is due to the disabled channels. I am trying to manually move the channels to close these gaps in the SortOrderIndexes.

Posted
4 hours ago, axelsl said:

I played with the API and saw that the SortOrderIndexes are a bit all over the place - they sometimes jump from for example 100 to 110 - I think it is due to the disabled channels. I am trying to manually move the channels to close these gaps in the SortOrderIndexes.

HI, yes the reason is related to this. We'll look at improving it. Thanks for reporting.

Posted

Thank you. Problem got solved indeed after I managed to manually close all the gaps in the SortOrderIndexes (by methodically moving channels back and forth to get the SortOrderIndexes in order). So far no new discrepancy has appeared even after disabling some of the channels. Here's to hoping it stays that way!

Posted

If anyone is interested in a quick way to export the channel list to be able to check for SortIndex discrepancies, I use the following Linux terminal command line to export a csv:

echo "Name","Index","IndexDiff">test.csv && curl -X 'GET' 'http://localhost:8096/emby/LiveTv/Manage/Channels?api_key=your_api_key' -H 'accept: application/json' | cat | jq --raw-output '.[][] | [.Name,.SortIndexNumber] | @csv' >> test.csv
 

Then I open it in any spreadsheet software and calculate the diff between each line's SortIndex.

  • Thanks 1
Posted

Hi everyone,

I found a quick way to fix all discrepancies in SortIndexes at once - with the command above identify the first channel with a discrepancy. Move it to the very end of your channel list. This will recalculate all SortIndexes properly and remove all discrepancies.

I might be the only one who has this kind of issues but if someone else does, I hope this helps!

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...