PredatH0r / ChanSort

TV channel list editor for Samsung, LG, Sony, Hisense, Panasonic, Philips, Sharp, Toshiba and MANY more.
868 stars 116 forks source link

Not possible to Edit Channels on new LG CX Series #172

Open sensatag opened 4 years ago

sensatag commented 4 years ago

Good morning. i am a multimedia technician in switzerland and just got the new LG TV OLED55CX6LA for the first time. We use your "Chansort" almost daily and are very happy with it. But it doesn't work with the new LG's. The file looks the same style as the 2019 models. I can send it to you if you want. it would be great, if someone could make this work.

GlobalClone00001.zip

thank you very much! Philipp

PredatH0r commented 4 years ago

Unfortunately this file is a completely different format that anything ever seen from LG. It has a few lines of XML wrapping, but the actual data is no longer in XML but in a JSON format now, stuffed into a "" element. I'll have to analyze that format further if it is just some "reformatting" or if it also also needs new logic to interpret the data. Either way, that will take some time and I can't offer an ETA on it yet.

Thanks a lot for the file though. I really appreciate it!

PredatH0r commented 4 years ago

Hi Philipp! I am working on support for this new file format and can already load, edit and save the main channel list. However I could not find anything related to favorites inside the file, therefore I had to disable fav list editing. Can you tell me if the TV has support for fav lists and if so, could you add channel 1 to fav list 1 in the TV menu, channel 2 to fav list 2 and so on, export the file and send it to me? Hopefully that helps me to identify how favorites are stored in the file.

PredatH0r commented 4 years ago

ChanSort 2020-05-03 with experimental support for this file type can be found here: http://chansort.com/ChanSort_2020-05-03.zip

Known Issues:

ahassanmaly commented 4 years ago

Thanks a lot for this ! I got my TV less than 10 days ago (In Egypt) and I got bold trying to get the correct files ! I checked with the LG shop and they said 2020 TVs channel list file are not yet available for TVs release in the last 15 days ! I only managed to reach this article when I googled !

Currently I am downloading the 03-05-20 version and will be testing it !

thanks again and if anything is needed from my side to help with testing I would be more than happy to help !

ahassanmaly commented 4 years ago

Hi PredatH0r any luck converting a LG old format file into the new format ?

PredatH0r commented 4 years ago

ChanSort will never be able to directly converting one format into another. Instead you can run a full clean channel scan with the new TV and use its own file format and then apply the ordering from another file (e.g. your old TV's channel list).

I have not received any feedback about the 2020-05-03 version whether or not the TV loads modified lists correctly, how favorites work with the CX series and how lists look like that contain DVB-C/T and DVB-S channels. Therefore I am still waiting before I can put that version in the general download section.

sensatag commented 4 years ago

Hello Thanks a lot for your work. Sorry for the delay, i was away some days. I now searched for DVB-S and DVB-C, did a fovorite list and exported again, file ist here. The TV has Favorite Lists, 8 of them. as it seems, it is not possible to mix favorites from different sources. if i add a DVB-C Channel on Favorite 1, then go to DVB-S and open the Favorites, the list is empty. I tryed to edit our channel list by using a reference list from LG's C9, that didn't work with the 03-05-2020 version.

Thanks a lot for your good work and go on! GlobalClone00001.zip

PredatH0r commented 4 years ago

Thanks for the new file. http://chansort.com/ChanSort_2020-05-11.zip now has separate lists for DVB-C TV, DVB-C Radio, DVB-S TV, DVB-S Radio. It also fixes an issue with channels in the list that are marked as deleted.

sensatag commented 4 years ago

im not able to open it, there is an error when i open the .exe.

PredatH0r commented 4 years ago

Uploaded a new version, same link. Must have missed a new DevExpress DLL that is now needed.

sensatag commented 4 years ago

Thanks a lot. It worked for the Satellite List i've sent to you, but i had to try a lot of times. At the end it was the .bak file which was the correct one with the editet list. So i think there is a problem with the editor that it is not storing the correct file to the correct name. can you please check it? I also tried to edit a channel list with DVB-C channels only, it worked to edit the file, if i reopen it with the editor, it is the correct list, but if i put it on the tv, there is no difference, so it takes the original file, not the editet one. i also tryed to take the .bak, but it's always the same list, without edits. i hope you understand what i mean...

sensatag commented 4 years ago

DVB-C List.zip

PredatH0r commented 4 years ago

The .bak file is a backup copy of the unmodified list. It is created the first time you save a modified list and won't be overwritten afterwards.

It is possible that ChanSort saves files in a corrupted way that the TV ignores. But LG has done its own share in the past to make things difficult, like exporting empty lists or ignoring loaded lists when the TV was initially set up with a specific "Provider" selected. Only when set up with a clean channel search, not selecting any provider, the TV successfully loads a modified list from USB. Otherwise anything from "no change" to random reshuffling has been observed.

I'll check later today if I can find any possible data corruptions caused by ChanSort. However I can't tell in what "mode" the TV is and whether it may or may not properly load a list at all.

sensatag commented 4 years ago

Ok, i tried to do a factory reset, search for DVB-C, Complete Scan, without any Provider Info, i was able to edit the file and store it, but if a reload it into the tv, it doesn't change the List...

Hawkeye1284 commented 4 years ago

Hi, i dont want to interrupt, i have the same problem with webOS 5 on a LG 65NANO867NA, i could edit the file, but not reupload.

I did the channel-setup with "other provider", my one was not in List...(DVB-C)

I wish you the best and thank you very much for solving this....

The TV Exports another Folder with the GlobalClone, i put them both in the Zip-File

GlobalClone incl extra Folder.zip

Update: List is uploaded, but channels are not sorted as I wanted them to be

PredatH0r commented 4 years ago

I uploaded a new version to http://chansort.com/ChanSort_2020-05-15.zip With an automated test I could make sure that only expected changes are made to the file by comparing the original with a modified file.

Before you start deleting channels, please try first to just renumber channels and keep the rest in the list. If you TV accepts that file, you can go ahead and try if it still works with deleted channels. There's a good chance this time that both will work.

sensatag commented 4 years ago

LG DVB-C List.zip Thank you very much, but it's still the same. I uploaded the files i would like to edit. The Bak is the original file from the tv. it always says "successfull", does a restart, but always the same channel list appears. also if i just move one channel and reload it on the tv. sorry...

PredatH0r commented 4 years ago

Thanks a lot for your help and patience! I compared the .bak file and the .tll file in your zip and aside from the channel numbers and one channel with a removed "skip" flag, they are the same.

Which is surprising, because even the .bak already has all the "userEditChNumber" fields set to "true", which is something ChanSort does, but the TV originally exports them as "false". It could be worth a try resetting the TV's channel list again and running a new search, exporting that file and only switching the first 2 channels with ChanSort before re-importing. That should rule out that the TV is already in some bad state from the previous imports. I would expect a clean export to have all "userEditChNumber" set to false. At this point my only other explanation would be that the TV actually imports, stores them and exports them again, but ignores them for its normal operation. I've seen similar with predefined provider lists that use "Logical Channel Numbers" (LCN), but I don't see those in your files.

I'll prepare and upload a new ChanSort version here in a few minutes, which will NOT set the "userEditChNumber" and "useSelCHNo" fields, just to minimize the changes made to the file in hope the TV will accept it. Chances are slim, but I'm grasping for straws heres.

PredatH0r commented 4 years ago

New version: http://chansort.com/ChanSort_2020-05-16.zip

sensatag commented 4 years ago

ok thank you. i gonna try it right now to reset the tv. our provider uses LCN, but i did a reset and search for channels by using the blind scan, without any network settings...

sensatag commented 4 years ago

so i did the reset, channel search, export, swapped 1 and 2, reimport. before the import the TV was on channel 1, then i've seen that the picture in the background changed to channel 2 while the import was working, then the tv makes his restart after successfull import and the channels were again as before... so i guess the tv resets the channels to default within that new start... DVB-C List.zip

PredatH0r commented 4 years ago

Does the TV allow you to change channel numbers through its menu? It it does, it would be interesting to see an exported list where the first 2 channels are swapped.

sensatag commented 4 years ago

this is what i am trying right now. but i did a reset again to not mix up things... come back in a few minutes.

sensatag commented 4 years ago

so it worked to edit the main channel list directly on the tv. here is the exported file after that. GlobalClone00001.zip

sensatag commented 4 years ago

i tryed again to edit the new file with chansort and reimportet it. the tv says "successfull", does a restart but there is still the list as before (with the manually editet list of the tv)

PredatH0r commented 4 years ago

I'm comparing the different version of the files now to see what changed when the TV itself reordered the channels. Hopefully that will give me some new insights.

PredatH0r commented 4 years ago

I took your latest file with the swapped SRF 1 HD and SRF 2 HD, swapped them back with ChanSort and then made a binary comparison between the 2 files. The only differences are the 2 bytes of the 2 channel numbers 1 and 2. I also compared one of your .bak files with the TV-swapped list and couldn't find anything out of the ordinary. The TV does set the "userEditChNumber" and "userSelCHNo" fields for the 2 channels just as I did in yesterday's ChanSort version.

Now I really wonder if the TV supports imports at all. To test that, export whatever is in your TV onto the stick. Then swap channels 3 and 4 on the TV, and import the list again. If the Import works, 3 and 4 should be back to normal. If they are still swapped, then the TV's import function is broken and there isn't anything I could do against it.

sensatag commented 4 years ago

ok i gonna try it monday. im out of the store now. thanks.

Hawkeye1284 commented 4 years ago

Hi,

i tried to follow the tips you try above, but they doesn't work either...i attach you every file and descripe what i have done:

  1. I copy the list after a new channel-search to a USB-Stick
  2. Edit of the list
  3. Upload to the TV (some channels (like "ProSieben" -> not a digital Channel) got the right number, no one of the digitals got the right number ("Das Erste HD" should be 1, but stays at 101)
  4. i Downloaded the list from 3 again to the stick, to see what happend.

It looks like some are right sorted, some got the old number and the TV sort them by the old list...?

i hope this helps and i am thankful for your support!

2_Upload to TV.zip 3_Uploaded list after Upload.zip 4_Re-Downloaded List.zip 1_Original from TV.zip

Hawkeye1284 commented 4 years ago

Does this help? 20200516_135649436_iOS

PredatH0r commented 4 years ago

In step 2, I assume you edited the list with ChanSort.

If you don't mind could you load #1 back in your TV and check if that looks like the initial list after the search? Then with the TV's menu, switch 2 channels. Then load the #1 list again from USB. I am trying to figure out if the TV can load it's own lists correctly that wasn't modified by ChanSort. If the 2 channels are still swapped after loading #1, the TV's import function is likely broken. If the channels are back in original order, then there must be something that I am missing.

In that case, now that you have a clean #1 list in your TV, it would be helpful if you could swap 2 channels again (e.g. 3 and 4), export the list again and send it to me. I can then compare the 2 and see what the difference is.

Thanks a lot for your help! BTW, the EPG (Programmführer) is not necessarily the same as the program channel numbers - at least I have seen TVs that use different numbers for those. On my old LG TV I can see the channel list in the menu where I start a channel search.

Hawkeye1284 commented 4 years ago

Done. I tried making Pictures and attached them, hopefull you can see them. On TV, the following happens:

  1. I Uploaded the #1 list and it looks like it works (Pic 1 and 2). But a view to the channel-manager says, that it doesnt work (Pic 3), the old list was still active in there.

  2. I started a new search for all programms then (Pic 4).

  3. i switches the first two channels ("Das Erste" from 101 to 102) (Pic 5 and 6)

  4. After that I uploaded the #1 list --> the switch still exists (Pic 7), so it looks like, webOS protects its "owner-sorted" list in the channel-manager

With my not existing programming skills i cannot understand why it is on the one hand possible to switch the channels with ChanSort (with the beta-programms), but on the other hand webOS protects the list?

Pics.zip

I also attach you the Result, for it may helps: Result Pic 7.zip

PS: I could open the channel-list with pushing the "List"-Button on the remote, but doesn't use the button before...sorry :-)

PredatH0r commented 4 years ago

Thanks a lot for your efforts! In the meantime I analyzed your files. 1 and 2 only differ by the program numbers, everything else is the same. 2 and 3 are 100% identical. 3 and 4 however have some differences again. Valid values for audioPid and videoPid got replaced by special values that mean "not set".

I will take a closer look now at the files you just uploaded. Your description of steps 2-4 pretty much confirms my suspicion though: The TV's import function is broken. It ignores whatever is in the file and keeps the current list - at least in the case of DVB-C. One can only hope that LG will fix that with the next firmware update.

PredatH0r commented 4 years ago

In the channel manager on Pic 3 I see Kabel DTV, Radio and TV-Gerät. What does the TV list under "TV-Gerät"? I wonder if that is for the data channels (like ARD-Data-1, Sky service config, Humax, Pace, X16-POP) or if that is where the imported list ends up

PredatH0r commented 4 years ago

Just to rule out a misunderstanding.... which file did you use as the "#1 list"? Was it the first one listed as "2_Upload to TV" or the "1_Original from TV"? I was refering to the "1_Original from TV", but that wasn't 100% clear now that I look at the messges again.

Is there an option in the TV's channel settings like "auto update"? This might be what is causing the list to be automatically re-ordered. Inside the file each channel also has a "disableUpdate" indicator, which is set to "false" and thus would allow updates. There is a chance if I set that to "true", the TV might not update the channel numbers automatically.

The attached file is the same as your "2_Upload to TV" but with all channels set to "disableUpdate: true". 2_Upload to TV_WithDisableUpdate.zip

Hawkeye1284 commented 4 years ago

Under "TV-Gerät" ist nothing...the list is empty...

the #1 List ist the List "1_Original from TV" as this is the fresh list after i searched for channels.

In the settings of the TV i had activated the Auto-Update function, after that i did upload the file you send, but with no effects. The change of the first two channels is still active...("Das Erste" on Number 102 instead of 101)

i will try a new search in a few minutes with activated update, download that list, rearange it and upload it, to see what happens

PredatH0r commented 4 years ago

The auto-update on the TV should be deactivated. Otherwise it might take the numbers that your cable provider sends as part of the DVB-C data to update the channel again.

Hawkeye1284 commented 4 years ago

I will deactivate it now.

The result of the new try is, that i have the exact amount of channels, every other is blocked, but they are not in the sequence i want....attached the new files. and Thank you for your support! :-)

1_Original List after search.zip 2_Sorted List.zip

sensatag commented 4 years ago

Good morning. so i tryed to export the channels of the tv, then swap 2 channels on the tv and re import the file just exported before. it didn't work at the first time. i had 2 times channel 1, 2 times channel 2... so i think you're right, the tv has a problem by importing channels... then a tryed to reimport the same file a second time and it worked. But it doesn't work with the chansort edited file, even if i try 3-4 times... sorry.

PredatH0r commented 4 years ago

Is the "automatic channel update" function disabled on your TV? I remember that this was a problem with earlier versions of LG TVs too, especially with DVB-C. When enabled, the TV started to immediately reorder channels again. On my own old LM620S I even had to activate hotel mode and disable the "DTV auto-update" there (but that was for DVB-S which allowed me to reorder predefined lists).

I uploaded my latest ChanSort build to http://chansort.com/ChanSort_2020-05-18.zip - but it has little changes. It only marks those channels that really received new numbers as modified and adds a "disableUpdate: true" to all channels - in the hope that the TV will not auto-update that channel. If you want to give it it a try, I suggest to load the clean list you exported in ChanSort, swap 3 and 4 and load that list twice in the TV. If that doesn't work, I'm pretty much out of ideas.

In your case it might also have been the TV's auto-update function that restored the original numbers and not the import of the original list. But let's hope for the best :)

sensatag commented 4 years ago

yes, auto update is disables. in the service menü i can only look at the regional settings, but not edit them. with the new editor i was able to swap the first two channels and reload it to the tv for the first time. first the tv said successfull, but without any changes. then i retryed again. the second time it was non successfull, the tv did not restart but the channels were swapped. then i did again a full factory reset, research channels, and edited it with chansort and my reference list, that didn't work again. even after 5 tryes. but the tv always did a restart... then i did a factory reset, without channel search and then just imported the channel list from chansort and that worked. (editet with my reference list as always). but from then on i could'nt find the import/export button anymore... i guess the tv sees my list as some sort of provider list now, which is not autorized to edit. even if i try to swap channels in the tv function (which worked before), i don't have the option to move now.

sensatag commented 4 years ago

GlobalClone00001.zip here is the file which worked for the import...

PredatH0r commented 4 years ago

Hard to tell if the Import/Export function was removed due to anything in the channel list, or if that is the TV's standard behavior when importing a list right after a factory reset without a prior list in the TV.

Here is a version of your file where i changed the "disableUpdate" back to "false" (the normal value). GlobalClone00002.zip It would be interesting if that file also works if it gets loaded right after a factory reset.

sensatag commented 4 years ago

i dont know if it helps you but this worked with you file (just renamed it to ..001, did a factory reset, skip channel search...). i now have the option import export and my file on the tv. but i also tryed to import the file before the factory reset, it was successfull but no changings on the tv list... so i guess the solution is to do a channel search, export file, edit with chansort, then factory reset, skip setup and reimport. that worked for me at least.

PredatH0r commented 4 years ago

That information helps a lot, thanks! At least there is a known way now to get a DVB-C list in the TV. DVB-C has been problematic with past NetCast/webOS versions, but never as tricky as with webOS 5. Maybe DVB-S works without a factory reset before the import. At least Astra 19.2E doesn't send any LCN, so the TV might not try to resort the list after an import.

wwaeel commented 4 years ago

[i have tv lg 65un7340pvc i put some channel on fav 1 and save file tll from my tv and i restore the file to tv then i can't find my fav channel

attachment my tll file for tv lg 65un7340pvc with some channels on fav 1 GlobalClone00001my.TLL.zip

PredatH0r commented 4 years ago

WebOS 4 used the data field "mapAttr" to store whether a channel is included in Fav list 1-8. However that field does not exist in the webOS 5 file, pretty much all other fields do. So it's quite possible that the TV doesn't write favorite information to the file at all, which would also explain your finding, that favorites got lost after export + import.

wwaeel commented 4 years ago

is any way to make fav with chansort?

PredatH0r commented 4 years ago

Unfortunately not. The only way for me to know how/where favorites are stored is to look at a file that contains favorite information. But since the TV does not export such data it is save to assume that it can't import favorites either. That's something the LG firmware developers need to fix.

PMC-Mircea commented 4 years ago

Hi, I bought an LG OLED55BX6LB TV and I imported list of tv programs on USB. The created file is tn3. The problem is that ChanSort fails to open this type of file / extension. Is there anything that can be done? Thanks in advance.