birtles.org.uk logo

Help to rename the channel name (remove country extension)

Discussion of Version 3 and developing lua grabbers

Help to rename the channel name (remove country extension)

Postby 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
Nielsen72
 
Posts: 4
Joined: Sat Dec 03, 2011 11:39 pm

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

Postby 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.
alanbirtles
Site Admin
 
Posts: 493
Joined: Mon Sep 06, 2004 4:44 pm

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

Postby 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 ....
Nielsen72
 
Posts: 4
Joined: Sat Dec 03, 2011 11:39 pm

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

Postby alanbirtles » Sat Dec 31, 2011 12:00 pm

the script in the linux distribution is the same as the windows one
alanbirtles
Site Admin
 
Posts: 493
Joined: Mon Sep 06, 2004 4:44 pm


Return to XMLTV GUI V3

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron