Re: Sugerencias para pordede
Publicado: 08 Feb 2015, 13:37
Sí, se hace desde el SVN.conejo escribió:No llego a entender muy bien de donde lo actualiza, he mriado el código por encima y no he visto nada, pero imagino que será desde el SVN...
Te paso un extracto del log. Es de la versión html pero el procedimiento es el mismo que el de xbmc/kodi
Código: Seleccionar todo
INFO 0802 12:37:03 pelisalacarta -----------------------------------------------------------------
INFO 0802 12:37:03 pelisalacarta PATH: /mediaserver/UG9yZGVkZXw+fDx8fD58PHxwb3JkZWRlfD58PHxtYWlubGlzdHw+fDx8ZGlyZWN0b3w+fDx8fD58PHxGLFN8Pnw8fHw+fDx8bGlzdHw+fDx8
INFO 0802 12:37:03 pelisalacarta HEADERS:
INFO 0802 12:37:03 pelisalacarta accept-language=es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
INFO 0802 12:37:03 pelisalacarta accept-encoding=gzip, deflate
INFO 0802 12:37:03 pelisalacarta connection=keep-alive
INFO 0802 12:37:03 pelisalacarta accept=text/html, */*; q=0.01
INFO 0802 12:37:03 pelisalacarta user-agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
INFO 0802 12:37:03 pelisalacarta host=www:8080
INFO 0802 12:37:03 pelisalacarta x-requested-with=XMLHttpRequest
INFO 0802 12:37:03 pelisalacarta referer=http://www:8080/mediaserver/VG9kb3N8Pnw8fHw+fDx8Y2hhbm5lbHNlbGVjdG9yfD58PHxsaXN0Y2hhbm5lbHN8Pnw8fGRpcmVjdG98Pnw8fHw+fDx8Knw+fDx8fD58PHxsaXN0fD58PHw=
INFO 0802 12:37:03 pelisalacarta HOST: www:8080
INFO 0802 12:37:03 pelisalacarta -----------------------------------------------------------------
INFO 0802 12:37:03 launcher extract_item_from_url()
INFO 0802 12:37:03 launcher ruta=/mediaserver/UG9yZGVkZXw+fDx8fD58PHxwb3JkZWRlfD58PHxtYWlubGlzdHw+fDx8ZGlyZWN0b3w+fDx8fD58PHxGLFN8Pnw8fHw+fDx8bGlzdHw+fDx8
INFO 0802 12:37:03 launcher item base64=UG9yZGVkZXw+fDx8fD58PHxwb3JkZWRlfD58PHxtYWlubGlzdHw+fDx8ZGlyZWN0b3w+fDx8fD58PHxGLFN8Pnw8fHw+fDx8bGlzdHw+fDx8
INFO 0802 12:37:03 launcher item: channel=pordede, action=mainlist, title=Pordede, url=, server=directo, category=F,S
INFO 0802 12:37:03 launcher getitems
INFO 0802 12:37:03 launcher Verificando actualización del canal
[updater.py] updatechannel('pordede')
[updater.py] remote_channel_url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.py
[updater.py] remote_version_url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.xml
[updater.py] local_channel_path=/home/robalo/pelisalacarta/pelisalacarta/channels/pordede.py
[updater.py] local_version_path=/home/robalo/pelisalacarta/pelisalacarta/channels/pordede.xml
[updater.py] local_compiled_path=/home/robalo/pelisalacarta/pelisalacarta/channels/pordede.pyo
[scrapertools.py] cachePage url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.xml
[scrapertools.py] MODO_CACHE=2 (no cachear)
[scrapertools.py] downloadpage
[scrapertools.py] url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.xml
[scrapertools.py] post=None
[scrapertools.py] ficherocookies=/home/robalo/.pelisalacarta/cookies.dat
[scrapertools.py] Importando cookielib
[scrapertools.py] cookielib disponible
[scrapertools.py] cambio en politicas
[scrapertools.py] Hay cookies
[scrapertools.py] Leyendo fichero cookies
[scrapertools.py] opener usando urllib2 (cookielib)
[scrapertools.py] petición GET
[scrapertools.py] ---------------------------
[scrapertools.py] header User-Agent=Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; es-ES; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
[scrapertools.py] ---------------------------
[scrapertools.py] Peticion sin timeout
[scrapertools.py] ...hecha
[scrapertools.py] Grabando cookies...
[scrapertools.py] ...hecho
[scrapertools.py] normal
[scrapertools.py] Respuesta
[scrapertools.py] ---------------------------
[scrapertools.py] alternate-protocol=80:quic,p=0.02
[scrapertools.py] content-length=234
[scrapertools.py] accept-ranges=bytes
[scrapertools.py] expires=Sun, 08 Feb 2015 11:39:35 GMT
[scrapertools.py] server=Apache
[scrapertools.py] last-modified=Sun, 08 Feb 2015 10:01:02 GMT
[scrapertools.py] connection=close
[scrapertools.py] etag="2182//trunk/pelisalacarta/pelisalacarta/channels/pordede.xml"
[scrapertools.py] cache-control=public, max-age=180
[scrapertools.py] date=Sun, 08 Feb 2015 11:36:35 GMT
[scrapertools.py] content-type=text/plain
[scrapertools.py] age=41
[scrapertools.py] ---------------------------
[scrapertools.py] Descargado en 1 segundos
[updater.py] remote_data=<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<version>
<name>pordede</name>
<tag>4</tag>
<date>08/02/2015</date>
<changes>Mejoras y arreglos, ahora se pueden ordenar enlaces desde la configuracion.</changes>
</version>
[updater.py] remote_version=4
[updater.py] local_data=<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<version>
<name>pordede</name>
<tag>2</tag>
<date>08/01/2015</date>
<changes>Mejoras en el canal (gracias a conejo)</changes>
</version>
[updater.py] local_version=2
[updater.py] updated
[updater.py] download_channel('pordede')
[updater.py] remote_channel_url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.py
[updater.py] remote_version_url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.xml
[updater.py] local_channel_path=/home/robalo/pelisalacarta/pelisalacarta/channels/pordede.py
[updater.py] local_version_path=/home/robalo/pelisalacarta/pelisalacarta/channels/pordede.xml
[updater.py] local_compiled_path=/home/robalo/pelisalacarta/pelisalacarta/channels/pordede.pyo
[scrapertools.py] cachePage url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.py
[scrapertools.py] MODO_CACHE=2 (no cachear)
[scrapertools.py] downloadpage
[scrapertools.py] url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.py
[scrapertools.py] post=None
[scrapertools.py] ficherocookies=/home/robalo/.pelisalacarta/cookies.dat
[scrapertools.py] Importando cookielib
[scrapertools.py] cookielib disponible
[scrapertools.py] cambio en politicas
[scrapertools.py] Hay cookies
[scrapertools.py] Leyendo fichero cookies
[scrapertools.py] opener usando urllib2 (cookielib)
[scrapertools.py] petición GET
[scrapertools.py] ---------------------------
[scrapertools.py] header User-Agent=Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; es-ES; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
[scrapertools.py] ---------------------------
[scrapertools.py] Peticion sin timeout
[scrapertools.py] ...hecha
[scrapertools.py] Grabando cookies...
[scrapertools.py] ...hecho
[scrapertools.py] normal
[scrapertools.py] Respuesta
[scrapertools.py] ---------------------------
[scrapertools.py] alternate-protocol=80:quic,p=0.02
[scrapertools.py] content-length=32361
[scrapertools.py] accept-ranges=bytes
[scrapertools.py] expires=Sun, 08 Feb 2015 11:39:36 GMT
[scrapertools.py] server=Apache
[scrapertools.py] last-modified=Sun, 08 Feb 2015 10:01:02 GMT
[scrapertools.py] connection=close
[scrapertools.py] etag="2182//trunk/pelisalacarta/pelisalacarta/channels/pordede.py"
[scrapertools.py] cache-control=public, max-age=180
[scrapertools.py] date=Sun, 08 Feb 2015 11:36:36 GMT
[scrapertools.py] content-type=text/plain
[scrapertools.py] age=40
[scrapertools.py] ---------------------------
[scrapertools.py] Descargado en 1 segundos
[updater.py] Grabado a /home/robalo/pelisalacarta/pelisalacarta/channels/pordede.py
[scrapertools.py] cachePage url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.xml
[scrapertools.py] MODO_CACHE=2 (no cachear)
[scrapertools.py] downloadpage
[scrapertools.py] url=http://xbmc-tvalacarta.googlecode.com/svn/trunk/pelisalacarta/pelisalacarta/channels/pordede.xml
[scrapertools.py] post=None
[scrapertools.py] ficherocookies=/home/robalo/.pelisalacarta/cookies.dat
[scrapertools.py] Importando cookielib
[scrapertools.py] cookielib disponible
[scrapertools.py] cambio en politicas
[scrapertools.py] Hay cookies
[scrapertools.py] Leyendo fichero cookies
[scrapertools.py] opener usando urllib2 (cookielib)
[scrapertools.py] petición GET
[scrapertools.py] ---------------------------
[scrapertools.py] header User-Agent=Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; es-ES; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
[scrapertools.py] ---------------------------
[scrapertools.py] Peticion sin timeout
[scrapertools.py] ...hecha
[scrapertools.py] Grabando cookies...
[scrapertools.py] ...hecho
[scrapertools.py] normal
[scrapertools.py] Respuesta
[scrapertools.py] ---------------------------
[scrapertools.py] alternate-protocol=80:quic,p=0.02
[scrapertools.py] content-length=234
[scrapertools.py] accept-ranges=bytes
[scrapertools.py] expires=Sun, 08 Feb 2015 11:39:35 GMT
[scrapertools.py] server=Apache
[scrapertools.py] last-modified=Sun, 08 Feb 2015 10:01:02 GMT
[scrapertools.py] connection=close
[scrapertools.py] etag="2182//trunk/pelisalacarta/pelisalacarta/channels/pordede.xml"
[scrapertools.py] cache-control=public, max-age=180
[scrapertools.py] date=Sun, 08 Feb 2015 11:36:35 GMT
[scrapertools.py] content-type=text/plain
[scrapertools.py] age=42
[scrapertools.py] ---------------------------
[scrapertools.py] Descargado en 1 segundos
[updater.py] Grabado a /home/robalo/pelisalacarta/pelisalacarta/channels/pordede.xml
pelisalacarta.channels.pordede mainlist
En la función 'updatechannel' de updater.py comprueba el tag
Código: Seleccionar todo
<tag>([^<]+)</tag>
Código: Seleccionar todo
# Comprueba si ha cambiado
updated = remote_version > local_version
if updated:
logger.info("[updater.py] updated")
download_channel(channel_name)
El resto de archivos que has subido al SVN no se actualizarán hasta que no se actualice el plugin. Que supongo lo revisará jesus antes de incluirlos y actualizar.