MovistarTV / tv_grab_es_movistartv

Grabber XMLTV para Movistar TV
GNU General Public License v3.0
45 stars 20 forks source link

No puedo añadir el grabber #25

Closed cscaloni closed 5 years ago

cscaloni commented 5 years ago

Antes de nada agradecerte tu tiempo y trabajo y hacer este gran aporte!

Estos son los pasos que realizo:

cd /tmp
wget https://github.com/MovistarTV/tv_grab_es_movistartv/blob/master/tv_grab_es_movistartv.py
sudo mv tv_grab_es_movistartv.py /usr/bin/tv_grab_es_movistartv
sudo chown root:root /usr/bin/tv_grab_es_movistartv
sudo chmod 755 /usr/bin/tv_grab_es_movistartv
reboot

Tras reinicio voy a la interfaz de tvheadend y no aparece nada

Si lo intento ejecutar a mano da un error:

[root@localhost bin]# sudo tv_grab_es_movistartv --reset /bin/tv_grab_es_movistartv: line 7: syntax error near unexpected token newline' /bin/tv_grab_es_movistartv: line 7:<!DOCTYPE html>'

¿podrías echarme una mano por favor?

Uso centos (4.4.190-1.el7.elrepo.x86_64)

Muchas gracias

cscaloni commented 5 years ago

Estaba mal el wget.... lo copie y pegué directamente el script!!

Ahora me sale otro problema, el grabber ya está en tvheadend pero no va:

2019-09-04 19:53:41.000 xmltv: /usr/bin/tv_grab_es_movistartv: grab /usr/bin/tv_grab_es_movistartv
2019-09-04 19:53:41.013 spawn: Executing "/usr/bin/tv_grab_es_movistartv"
2019-09-04 19:58:42.302 spawn: Traceback (most recent call last):
2019-09-04 19:58:42.302 spawn:   File "/usr/bin/tv_grab_es_movistartv", line 1230, in 
2019-09-04 19:58:42.303 spawn:     print u'Excepción:\n\n\t %s\n\nTraceback:\n\n\t%s' % (e.message, traceback.format_exc())
2019-09-04 19:58:42.303 spawn: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 7: ordinal not in range(128)
2019-09-04 19:58:42.329 xmltv: /usr/bin/tv_grab_es_movistartv: no output detected
2019-09-04 19:58:42.329 xmltv: /usr/bin/tv_grab_es_movistartv: grab returned no data
2019-09-04 19:58:42.329 xmltv: /usr/bin/tv_grab_es_movistartv: grab /usr/bin/tv_grab_es_movistartv
2019-09-04 19:58:42.340 spawn: Executing "/usr/bin/tv_grab_es_movistartv"

grabber

cscaloni commented 5 years ago
[root@localhost .xmltv]# cat tv_grab_es_movistartv.log
[04/09/2019 20:07:08] [INFO] ---------------------------------------------------
[04/09/2019 20:07:08] [INFO] MovistarTV EPG Grabber
[04/09/2019 20:07:08] [INFO] Parámetros: ['--output', '/home/hts/.xmltv/guia.xml']
[04/09/2019 20:07:08] [INFO] ---------------------------------------------------
[04/09/2019 20:07:08] [INFO] Creando caché en /home/hts/.xmltv/cache
[04/09/2019 20:07:08] [INFO] Cookie: no encontrada
[04/09/2019 20:07:08] [INFO] Descargando configuración del cliente
[04/09/2019 20:07:23] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 3
[04/09/2019 20:07:38] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 2
[04/09/2019 20:07:54] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 1
Cebeerre commented 5 years ago

Lo más probable es que no tengas las DNS de Telefónica. Esos dominios solo resuelven usando sus servers.

Saludos !

El mié., 4 sept. 2019 20:07, cscaloni notifications@github.com escribió:

[root@localhost .xmltv]# cat tv_grab_es_movistartv.log

[04/09/2019 20:07:08] [INFO] ---------------------------------------------------

[04/09/2019 20:07:08] [INFO] MovistarTV EPG Grabber

[04/09/2019 20:07:08] [INFO] Parámetros: ['--output', '/home/hts/.xmltv/guia.xml']

[04/09/2019 20:07:08] [INFO] ---------------------------------------------------

[04/09/2019 20:07:08] [INFO] Creando caché en /home/hts/.xmltv/cache

[04/09/2019 20:07:08] [INFO] Cookie: no encontrada

[04/09/2019 20:07:08] [INFO] Descargando configuración del cliente

[04/09/2019 20:07:23] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 3

[04/09/2019 20:07:38] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 2

[04/09/2019 20:07:54] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MovistarTV/tv_grab_es_movistartv/issues/25?email_source=notifications&email_token=AKWSSPRWTBGZHGL2EUKGOPTQH72N5A5CNFSM4ITUMZX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD54OXDA#issuecomment-528018316, or mute the thread https://github.com/notifications/unsubscribe-auth/AKWSSPVAYY66Z7YCT7DB2K3QH72N5ANCNFSM4ITUMZXQ .

cscaloni commented 5 years ago

Que DNS me recomiendas poner? muchas gracias

cscaloni commented 5 years ago

Acabo de poner estas:

[root@localhost ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4

Y lo mismo:

[05/09/2019 01:31:54] [INFO] --------------------------------------------------- [05/09/2019 01:31:54] [INFO] MovistarTV EPG Grabber [05/09/2019 01:31:54] [INFO] Parámetros: [] [05/09/2019 01:31:54] [INFO] --------------------------------------------------- [05/09/2019 01:31:54] [INFO] Cookie: no encontrada [05/09/2019 01:31:54] [INFO] Descargando configuración del cliente [05/09/2019 01:32:10] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 3

cscaloni commented 5 years ago

Esta puede aclarar algo?

[root@localhost ~]# nslookup www-60.svc.imagenio.telefonica.net
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
Name:   www-60.svc.imagenio.telefonica.net
Address: 172.26.22.23
Cebeerre commented 5 years ago

Prueba con 80.58.61.250 y 80.58.61.254

Saludos !

El jue., 5 sept. 2019 1:35, cscaloni notifications@github.com escribió:

Esta puede aclarar algo?

[root@localhost ~]# nslookup www-60.svc.imagenio.telefonica.net Server: 8.8.8.8 Address: 8.8.8.8#53

Non-authoritative answer: Name: www-60.svc.imagenio.telefonica.net Address: 172.26.22.23

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MovistarTV/tv_grab_es_movistartv/issues/25?email_source=notifications&email_token=AKWSSPVPGWL3EZ5J6Q55W2TQIBA3RA5CNFSM4ITUMZX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD55KR4Q#issuecomment-528132338, or mute the thread https://github.com/notifications/unsubscribe-auth/AKWSSPW56XAIV5EPOOQYRCDQIBA3RANCNFSM4ITUMZXQ .

cscaloni commented 5 years ago

Cambiados en: nano /etc/sysconfig/network-scripts/ifcfg-enp1s0f0 Hago reboot

Compruebo:

[root@localhost ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 80.58.61.250
nameserver 80.58.61.254

Pruebo script:

[05/09/2019 01:50:50] [INFO] MovistarTV EPG Grabber
[05/09/2019 01:50:50] [INFO] Parámetros: ['--tvheadend', '/home/hts/.xmltv/MovistarTV']
[05/09/2019 01:50:50] [INFO] ---------------------------------------------------
[05/09/2019 01:50:50] [INFO] Cookie: no encontrada
[05/09/2019 01:50:50] [INFO] Descargando configuración del cliente
[05/09/2019 01:51:05] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 3
[05/09/2019 01:51:20] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 2
[05/09/2019 01:51:35] [WARNING] Timeout: http://www-60.svc.imagenio.telefonica.net:2001, reintentos: 1
Cebeerre commented 5 years ago

Si te resuelve:

xavi@macmini:~$ host www-60.svc.imagenio.telefonica.net
www-60.svc.imagenio.telefonica.net has address 172.26.22.23

Y no llegas:

xavi@macmini:~$ nc -zv www-60.svc.imagenio.telefonica.net 80
Connection to www-60.svc.imagenio.telefonica.net 80 port [tcp/http] succeeded!

Otra manera:

xavi@macmini:~$ nmap www-60.svc.imagenio.telefonica.net -p 80

Starting Nmap 7.40 ( https://nmap.org ) at 2019-09-05 07:38 CEST
Nmap scan report for www-60.svc.imagenio.telefonica.net (172.26.22.23)
Host is up (0.011s latency).
PORT   STATE SERVICE
80/tcp open  http

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds

En el router (default gw) no tienes las rutas para llegar a la vlan de la tele. Tienes contratado el servicio ? Recuerda que esto únicamente funciona si lo tienes.

Saludos.

cscaloni commented 5 years ago

Pues ya encontramos el problema jeje,

Muchas gracias!