- 19 Ene 2013
- 461
- 184
- 0
- 52
Hola...
He adaptado el scrip oscam.svird Creator al OS Spark Triplex, para crear ficheros para el oscam.srvid actualizado con la pagina http://en.kingofsat.net/packages.php y los proveedores de oscam.provid...
Fichero 1config.sh:
Continua...
Salu2...
He adaptado el scrip oscam.svird Creator al OS Spark Triplex, para crear ficheros para el oscam.srvid actualizado con la pagina http://en.kingofsat.net/packages.php y los proveedores de oscam.provid...
Fichero 1config.sh:
Código:
#!/bin/sh
#
# Author: Newcs-Team for http://www.satgate-team.ouba.com
# Date: 2011-11-15
#
# Modification/Modificion:
# Author/Autor: HSA2000
# Date/Fecha: 2013-01-30
#
# Description/Descripcion:
# Added to locate a file from providers who want to
# update the channel list to update ids oscam.srvid...
#
# Añadido que se busque desde un fichero los proveedores
# de los que se quieres actualizar la lista de canales
# para actualizar los ids de oscam.srvid...
#
clear
if test $# -lt 1
then
echo "--------------------------------------------------------------------"
echo " ** ERROR!!!: run ./1config.sh <file_prov> "
echo "--------------------------------------------------------------------"
exit
fi
if [ -f $1 ]
then
DATFILE="package.list"
echo "Downloading package list from KingOfSat.net"
echo "-------------------------------------------"
wget -O ${DATFILE} http://en.kingofsat.net/packages.php
#
# Delete the file eviar srvidsatgate.cfg for errors...
#
# Borrar el fichero srvidsatgate.cfg para evitar errores...
#
rm srvidsatgate.cfg
#
# Read the file where is the list of suppliers to find...
#
# Leer el fichero donde esta la lista de los proveedores a buscar...
#
while read linea
do
awk -F '>' -v MyID="$linea" 'BEGIN { package="none" }
/target="_blank">/ { packdisname = substr($3,1,length($3)-3)
}
/<TD><A class="A3">/ { packdisname = substr($3,1,length($3)-3)
}
/<A class="bld" HREF=/ {
packurl = substr($4,22,length($4)-22)
if ( length(packurl) == 0) next
packcountry = substr($2,1,length($2)-4)
if ( packdisname == MyID )
printf "%-25s|%-20s|%s\n", packdisname, packcountry, packurl
packdisname="NONE"
packcountry="NONE"
packurl="NONE"
next
}' ${DATFILE} >> srvidsatgate.cfg
done < $1
echo "Done"
echo "--------------------------------------------------------------------"
echo " ** Please edit the file srvidsatgate.cfg and remove "
echo " ** the # from the lines with the packages that you want to generate"
echo "--------------------------------------------------------------------"
else
echo "--------------------------------------------------------------------"
echo " ** ERROR!!!: FILE $1 NOT FOUND... "
echo "--------------------------------------------------------------------"
fi
Continua...
Salu2...