Hola, lo de actualizar las cclines a mano cada 24h me parecia un coñazo asi que he creado un script en python que lo hace automáticamente
Por ahora esta testeado en BlackHole 3.0.1, BlackHole 2.1.7 y openSPA (cambiando la linea que reinicia CCcam)
Ten en cuenta que algunos firmwares borran las librerias estandares de python por lo que puede que no funcione.
Para esos casos debes buscar la libreria que te falta e instalar esa libreria metiendola en la carpeta correspondiente (/usr/lib/python2.7) o mejor aun, instalándola mediante el comando "opkg install python-importlib" (por ejemplo para la libreria importlib)El script efectua los siguientes pasos:
1- Busca actualizaciones/nuevos servidores por si los hay y se los descarga
2- Te va a varias webs "de esas" y te pilla varias C-lines
3- Une las existentes clines que ya tenias en el CCcam.cfg junto a las nuevas.
Testea las existentes y las nuevas para ELIMINAR las que no respondan y las ordena por ping
4- Mete todas las lineas en el CCcam.cfg
5- Resetea el CCcam para que lea esas nuevas lineas (en caso de que le pases el parametro -r NO lo hace)
Nota: El hecho de testear todas las lineas y borrar las que no funcionan hace que obtengas relativamente pocas lineas en comparación a otros generadores. En mi opinión, es mejor tener 3 o 4 lineas que funcionan a 20 y que solo funcionen 3
El codigo del archivo python lo teneis aqui:
https://github.com/DaggerES/ReloadCam/blob/master/ReloadCam.pyPasos para hacerlo funcionar:
1: Crearte un archivo y llamarlo ReloadCam.py <--------- OJO, la extension del archivo debe ser .py!
2: ir a la web de arriba y copiar el codigo y pegarlo en ese archivo .py
3: Leer la parte superior de ese archivo y modificar las rutas que consideres necesarias tal y como se especifica en el archivo
4: Meter ese archivo que acabas de crear (ReloadCam.py) en la carpeta /usr/script/ a traves del FTP y le das permisos (777 por ejemplo)
5: Ahora puedes ejecutar ese programa mediante telnet usando el comando: ---> python '/usr/script/ReloadCam.py' -s ALLTF
Lo ideal es tener un script programado para que se ejecute cada 12 o 24h asi que para ello:
1: creamos un nuevo archivo y lo llamamos ReloadCam.sh <--------- OJO, la extension del archivo debe ser .sh!
2: dentro de ese archivo escribimos el comando que antes hemos usado en telnet asi que debe quedar:
python '/usr/script/ReloadCam.py' -s ALLTF
o, si queremos que tambien nos incluya las lineas de testious y freecline (
recomendado, ya que pillara las 5 que tengan mejor ping y funcionen)
python '/usr/script/ReloadCam.py' -s ALL
3: Guardas el archivo y lo subes por FTP a /usr/script/ReloadCam.sh y le das permisos (777 por ejemplo)
4: Ahora lo puedes ejecutar desde el menu de scripts
5: Tambien lo puedes programar desde el 'Cron Manager' de blackhole escribiendo ese mismo comando (python '/usr/script/ReloadCam.py' -s ALLTF)
http://www.forokeys.com/foro/vu/(manual)-configurar-el-cron-manager-desde-ftp6: Si te interesa, tambien puedes crear un script que te ponga en blanco el CCCam.cfg. Esto es interesante cuando quieres que cada tanto se refresque el archivo entero.
Para ello, crea un fichero con extension .sh y pon el siguiente codigo dentro:
> /etc/CCcam.cfg
---
Si llamas al script de esta forma:
python '/usr/script/ReloadCam.py' -n
Solamente eliminara las lineas que no te funcionen y te las reordenara por ping. Este opcion es muy util para ejecutarla cada 2 o 3 horas ya que no toma tanto tiempo como la descarga de nuevas lineas
---
Si quieres usar OSCAM en vez de cccam debes usarlo con el parametro -o "RUTAALOSCAM.SERVER" ejemplos (ambos son iguales):
python '/usr/script/ReloadCam.py' -s ALL -o "/etc/tuxbox/config/oscam.server"
python '/usr/script/ReloadCam.py' -s ALL --oscam "/etc/tuxbox/config/oscam.server"
---
Si tenéis mas ideas o webs buenas avisadme y quizás podamos meter mejores servidores
Saludos!