Help to rename the channel name (remove country extension)

Discussion of Version 3 and developing lua grabbers
Post Reply
Nielsen72
Posts: 4
Joined: Sat Dec 03, 2011 11:39 pm

Help to rename the channel name (remove country extension)

Post by Nielsen72 » Sun Dec 04, 2011 3:01 pm

My XMLTV provider (Danish ontv.dk) gives the individual channel names a country extension

Example:
tv3 se (se = Sweden)
Discovery dk (dk = Denmark)
TLC no (no = Norway)

But when I do auto EPG setup in my media center, there are always problems caused by the country extension ...

Can anyone help me by writing a script that can remove the three last character (space and two letters) in each channel name "display-name"
Perhaps as an on/off option during setup ONTV

Thanks in advance
Bo Nielsen

alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Help to rename the channel name (remove country extensio

Post by alanbirtles » Sun Dec 04, 2011 7:38 pm

look at scripts\ukrt\ukrt_freeview_names.lua for an example of how to change channel names.

Nielsen72
Posts: 4
Joined: Sat Dec 03, 2011 11:39 pm

Re: Help to rename the channel name (remove country extensio

Post by Nielsen72 » Tue Dec 20, 2011 10:15 pm

I have spent much time searching. It seems that the file does not exist in the Windows version
but I have found it in the Linux version (xmltvgui_3.14.01L.tar.gz)

It must be a mistake ....

alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Help to rename the channel name (remove country extensio

Post by alanbirtles » Sat Dec 31, 2011 12:00 pm

the script in the linux distribution is the same as the windows one

Post Reply