Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Converting technotrend .ini files to channels.conf format



Hi,
I'm using technotrend's ini transponder files for generating actual channels.conf file.
These files used by most win32 applications for scanning transponders. You can download up-to-date files from  http://joshyfun.webzdarma.cz/transponders/index.html .

I'm converting these files to channels.conf format using a text editor's find-replace feature. 
When i switch these fake channels (each channel line assumes one transponder), autopid finds channels on that transponder, therefore drops them down to the list. This is the best way for me to  genereting an actual channel list.

Converting operation got a little trouble in some cases, let me explain converting procedure;

these ini file looks like this:


[SATTYPE]
1=0420
2=Turksat 1C

[DVB]
0=40
1=10963,V,27500,56
2=10968,H,27500,56
3=10975,H,27500,34
4=10985,V,22000,34
5=11019,V,27500,56
6=11025,V,6510,56
............

I want to let it looks like this:

 1:10963:V:S42.0E:27500:8191:8191:8191:0:8191:8191:1:0
 2:10968:H:S42.0E:27500:8191:8191:8191:0:8191:8191:2:0
 3:10975:H:S42.0E:27500:8191:8191:8191:0:8191:8191:3:0
 4:10985:V:S42.0E:22000:8191:8191:8191:0:8191:8191:4:0
 2:11019:V:S42.0E:27500:8191:8191:8191:0:8191:8191:5:0
 2:11025:V:S42.0E:4557:8191:8191:8191:0:8191:8191:6:0

Operation sequence:

1)  "="  replaced by  ":" 
1:10963,V,27500,56

2) " ,V,"  replaced by  ":V:S42.0E:" which depends on satellite
3)  therefore ",H,"  replaced by  ":H:S42.0E:" which depens on satellite
1:10963:V:S42.0E:27500,56

4) FEC numbers starting with comma (aka ,56 ,78 ,34) must be replaced by ":8191:8191:8191:0:8191:8191:X:0" (attention to "X")
1:10963:V:S42.0E:27500:8191:8191:8191:0:8191:8191:X:0

5) "X" must be replaced by channel name, because each transponder's TID must be different.(This is trouble case to me, because i do this manually :o)
Transponder is ready:
1:10963:V:S42.0E:27500:8191:8191:8191:0:8191:8191:1:0

It sounds good but i need a script (awk,sed,perl or whatever be) automated operation. I think that not needs for a high level scripting knowledge.My scripting level is not enough for this operation.
I need your help..

Thank You.
Taner Tas - Ankara - Anatolia


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index