axelsl 19 Posted May 22, 2024 Posted May 22, 2024 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: I move the channel DK4 Danmark FHD DK to one position above TV 3 MAX FHD DK 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! 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 1
axelsl 19 Posted May 22, 2024 Author Posted May 22, 2024 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).
axelsl 19 Posted May 22, 2024 Author Posted May 22, 2024 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).
axelsl 19 Posted May 23, 2024 Author Posted May 23, 2024 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!
axelsl 19 Posted May 23, 2024 Author Posted May 23, 2024 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.
Luke 42080 Posted May 23, 2024 Posted May 23, 2024 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.
axelsl 19 Posted May 23, 2024 Author Posted May 23, 2024 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!
axelsl 19 Posted May 25, 2024 Author Posted May 25, 2024 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. 1
axelsl 19 Posted June 1, 2024 Author Posted June 1, 2024 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! 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now