Mailing List archive

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

[linux-dvb] Re: ANN: scripts for updating channels.conf



This is just what I'm using.
Hope it helps.

Il gio, 2003-12-18 alle 17:00, Johannes Stezenbach ha scritto:
> Hi,
> 
> Radovan Garabik wrote:
> > There are two python scripts, one for converting SatcoDX format
> > into channels.conf, one for updating old channels.conf with new
> > information (while keeping the order, so that xine's OSD menu
> > is not reordered :-)).
> > The scripts are brainded simple, but might be of some use.
> > Usage should be obvious from comments in the source.
> > 
> > URL:
> > http://kassiopeia.juls.savba.sk/~garabik/satscripts/
> 
> Nice, but:
> http://www.satcodx1.com/_data/013.txt : 404 Not Found
> 
> It seems the file is called http://www.satcodx1.com/_data/0130.txt.
> 
> Also, the official SatcoDX format seems to be:
> http://www.satcodx1.com/_data/0130.sdx
> 
> Is there a page with clickable links to the .txt format
> files on www.satcodx1.com?
> 
> Regards,
> Johannes
-- 
Vincenzo Di Massa <hawk78_it@yahoo.it>
#!/bin/bash

if [ -e ./0192.txt ] ; then
	echo "Using old settings for Astra"
else 
	wget http://www.satcodx2.com/_data/0192.txt #download Astra settings
fi

if [ -e ./0130.txt ] ; then
 echo "Using old settings for Astra"
else 
 wget http://www.satcodx1.com/_data/0130.txt #download Hotbird settings
fi 

cat 0192.txt |awk '{FS="\t"}$1 ~ /TV-DIG-FTA/ {  gsub(/\//, " ",$5);print $5":" $3*1000 ":" $4 ":1:" $10 ":" $12 ":" $13}'>channels.conf-ASTRA-TV 

cat 0130.txt |awk '{FS="\t"}$1 ~ /TV-DIG-FTA/ {  gsub(/\//, " ",$5);print $5":" $3*1000 ":" $4 ":5:" $10 ":" $12 ":" $13}'>channels.conf-HOTBIRD-TV 

cat 0192.txt |awk '{FS="\t"}$1 ~ /R-DIG-FTA/ {  gsub(/\//, " ",$5);print $5":" $3*1000 ":" $4 ":1:" $10 ":" $12 ":" $13}'>channels.conf-ASTRA-RADIO

cat 0130.txt |awk '{FS="\t"}$1 ~ /R-DIG-FTA/ {  gsub(/\//, " ",$5);print $5":" $3*1000 ":" $4 ":5:" $10 ":" $12 ":" $13}'>channels.conf-HOTBIRD-RADIO


Home | Main Index | Thread Index