ok . vamos a echarles un ojorobalo escribió:neno1978
Échale un ojo a esta página http://www.aquitorrent.com
Los vídeos son .avi que no están dentro de una carpeta. Creo que es por lo que suele dar error los avis por elchorizo de caracteres que meten en el nombre de la carpeta.
Creo que sólo tienen HD pero para probar los putos avis está bien. No se ven cosas raras en el log
Pulsar- nuevo torrent stream
Re: Pulsar- nuevo torrent stream
Mensaje por neno1978 » 18 Nov 2014, 19:11
Re: Pulsar- nuevo torrent stream
Mensaje por neno1978 » 19 Nov 2014, 10:58
Código: Seleccionar todo
def findvideos(item):
logger.info("pelisalacarta.aquitorrent findvideos")
itemlist = []
data = scrapertools.cache_page(item.url)
data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
patron = '<td class="wrapper_pic_td">.*? '
patron+= 'alt="([^"]+)".*?'
patron += '<a href="magnet([^"]+)"'
matches = re.compile(patron,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
for scrapedtitle, scrapedurl in matches:
itemlist.append( Item(channel=__channel__, title =scrapedtitle , url=scrapedurl, action="play", server="torrent", folder=False) )
return itemlist
Publicidad
Re: Pulsar- nuevo torrent stream
Mensaje por robalo » 20 Nov 2014, 00:52
Código: Seleccionar todo
patron += '<a href="(magnet[^"]+)"'Código: Seleccionar todo
<a href="http://www.bitlet.org/video/play?torrent=<torrent>"Código: Seleccionar todo
patron+= '<a href="http://www.bitlet.org/video/play.torrent=([^"]+)"'Re: Pulsar- nuevo torrent stream
Mensaje por neno1978 » 20 Nov 2014, 12:59
Si, robalo, también lo hice así, y nada, no me devuelve nada, y con el torrent tampoco. voy a darle una vueltarobalo escribió:El problema es por que la url no la coge entera, dejas fuera 'magnet'. Encierra la url completa con '()'También tienes el torrent un poco más abajo, enCódigo: Seleccionar todo
patron += '<a href="(magnet[^"]+)"'en patrón seríaCódigo: Seleccionar todo
<a href="http://www.bitlet.org/video/play?torrent=<torrent>"Código: Seleccionar todo
patron+= '<a href="http://www.bitlet.org/video/play.torrent=([^"]+)"'
Re: Pulsar- nuevo torrent stream
Mensaje por robalo » 20 Nov 2014, 22:42
Código: Seleccionar todo
scrapedurl = "http://www.aquitorrent.com/"+scrapedurl
itemlist.append( Item(channel=__channel__, title=scrapedtitle, url=scrapedurl, action="findvideos", thumbnail=scrapedthumbnail, folder=True) )
Re: Pulsar- nuevo torrent stream
Mensaje por neno1978 » 20 Nov 2014, 23:34
si robalo, el problema era q tengo la constumbre de reutilizar un canal y se me quedan cosas por medio. Empezar de cero anotado paara la próxima.robalo escribió:neno1978 no se te habrá olvidao añadir el host a la url en la función anterior? por que ami si me funciona.
Código: Seleccionar todo
scrapedurl = "http://www.aquitorrent.com/"+scrapedurl itemlist.append( Item(channel=__channel__, title=scrapedtitle, url=scrapedurl, action="findvideos", thumbnail=scrapedthumbnail, folder=True) )
En cuanto al canal, a mi me sigue fallando xbmctorrent en este cn los avis, pero bueno, pulsar los abre bien
Re: Pulsar- nuevo torrent stream
Mensaje por neno1978 » 20 Nov 2014, 23:45
mira te lo pongo entero
Código: Seleccionar todo
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os, sys
from core import logger
from core import config
from core import scrapertools
from core.item import Item
from servers import servertools
__channel__ = "aquitorrent"
__category__ = "F"
__type__ = "generic"
__title__ = "Aquitorrent"
__language__ = "ES"
DEBUG = config.get_setting("debug")
def isGeneric():
return True
def mainlist(item):
logger.info("pelisalacarta.aquitorrent mainlist")
itemlist = []
itemlist.append( Item(channel=__channel__, title="Peliculas" , action="peliculas", url="http://www.aquitorrent.com/torr.asp?tipo=PELICULAS", thumbnail="", fanart=""))
return itemlist
def peliculas(item):
logger.info("pelisalacarta.aquitorrent peliculas")
itemlist = []
# Descarga la página
data = scrapertools.cache_page(item.url)
data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
patron = '<div class="div_pic" align="center">'
patron += '<a href="([^"]+)".*?>'
patron += '<img src="([^"]+)".*?'
patron += 'alt="([^"]+)"'
matches = re.compile(patron,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
for scrapedurl, scrapedthumbnail, scrapedtitle in matches:
scrapedurl = "http://www.aquitorrent.com/"+scrapedurl
itemlist.append( Item(channel=__channel__, title=scrapedtitle, url=scrapedurl, action="findvideos", thumbnail=scrapedthumbnail, folder=True) )
return itemlist
def findvideos(item):
logger.info("pelisalacarta.aquitorrent findvideos")
itemlist = []
data = scrapertools.cache_page(item.url)
data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
patron = '<a href="http://www.bitlet.org/video/play.torrent=([^"]+)"'
matches = re.compile(patron,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
for scrapedurl in matches:
itemlist.append( Item(channel=__channel__, title ="[torrent]" , url=scrapedurl, action="play", server="torrent", folder=False) )
return itemlist
Re: Pulsar- nuevo torrent stream
Mensaje por robalo » 21 Nov 2014, 10:45
Nos se que decirte, a mi no me sale en el log los errores que salían antes. He probado "La casa de Mickey Mouse" y en los dos se para en el mismo punto. Con xbmctorrent no se ve claro en el log el motivo, sólo un return -1 en las respuestas. Pulsar dice: "We don't have piece 506, setting piece priorities", por lo que creo entender, nos falta un cacho . Aún así dime que vídeos has probado de aquitorrent que te haya dado error en xbmctorrent y en pulsar no. Así me aclaro con este tema.neno1978 escribió:En cuanto al canal, a mi me sigue fallando xbmctorrent en este cn los avis, pero bueno, pulsar los abre bien, yo creo q es problema de xbmctorrent ya terminare el canal q siempre esta bien tener más
Te pego como tengo yo el canal para que lo pruebes y para que puedas sacar algunas conclusiones.
Código: Seleccionar todo
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os
import sys
from core import scrapertools
from core import config
from core import logger
from core.item import Item
from servers import servertools
__channel__ = "aquitorrent"
__category__ = "F"
__type__ = "generic"
__title__ = "Aquitorrent"
__language__ = "ES"
DEBUG = config.get_setting("debug")
def isGeneric():
return True
def mainlist(item):
logger.info("pelisalacarta.aquitorrent mainlist")
itemlist = []
itemlist.append( Item(channel=__channel__, action="peliculas", title="Películas", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=PELICULAS"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="Series", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=SERIES"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="Películas HD", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=Peliculas%20HD"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="Películas 3D", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=PELICULAS%203D"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="DVDR Imagen de DVD", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=DVDR%20IMAGEN%20DE%20DVD"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="BR Imagen de BlueRay", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=BR%20IMAGEN%20DE%20BLUERAY"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="Películas V.O.S.", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=PELICULAS%20V.O.S."))
itemlist.append( Item(channel=__channel__, action="peliculas", title="Docus y TV", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=Docus%20y%20TV"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="Clásicos Disney", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=CLASICOS%20DISNEY"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="F1 2014", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=F1%202014"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="MotoGP 2014", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=MotoGP%202014"))
itemlist.append( Item(channel=__channel__, action="peliculas", title="Mundial 2014", url="http://www.aquitorrent.com/torr.asp?pagina=1&tipo=Mundial%202014"))
itemlist.append( Item(channel=__channel__, action="search", title="Buscar...", url=""))
return itemlist
# Al llamarse "search" la función, el launcher pide un texto a buscar y lo añade como parámetro
def search(item,texto):
logger.info("[pelisalacarta.aquitorrent search texto="+texto)
item.url = "http://www.aquitorrent.com/buscar.asp?pagina=1&buscar=%s" % (texto)
try:
return peliculas(item)
# Se captura la excepción, para no interrumpir al buscador global si un canal falla
except:
import sys
for line in sys.exc_info():
logger.error( "%s" % line )
return []
def peliculas(item):
logger.info("pelisalacarta.aquitorrent peliculas")
itemlist = []
data = scrapertools.cache_page(item.url)
data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
# Elimina el título en los href de los enlaces
data = re.sub(r'&/[^"]+">','">',data)
patron = '<div class="div_pic"[^>]+>'
patron+= '<a href="([^"]+)">'
patron+= '<img src="([^"]+)" alt="([^"]+)"'
matches = re.compile(patron,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
host = "http://www.aquitorrent.com/"
for scrapedurl, scrapedthumbnail, scrapedtitle in matches:
itemlist.append( Item(channel=__channel__, title =scrapedtitle , url=host+scrapedurl, action="findvideos", thumbnail=scrapedthumbnail) )
## Paginación
pagina = int(scrapertools.get_match(item.url,"pagina=(\d+)"))+1
pagina = "pagina=%s" % (pagina)
next_page = re.sub(r"pagina=\d+", pagina, item.url)
if pagina in data:
itemlist.append( Item(channel=__channel__, title=">> Página siguiente", url=next_page, action="peliculas", folder=True) )
return itemlist
def findvideos(item):
logger.info("pelisalacarta.aquitorrent findvideos")
itemlist = []
data = scrapertools.cache_page(item.url)
data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
patron = 'href="(magnet[^"]+)".*?'
patron+= 'href="http://www.bitlet.org/video/play.torrent=([^&]+)&'
matches = re.compile(patron,re.DOTALL).findall(data)
for scrapedmagnet, scrapedtorrent in matches:
itemlist.append( Item(channel=__channel__, title =item.title+" [magnet]" , url=scrapedmagnet, action="play", server="torrent", thumbnail=item.thumbnail, folder=False) )
itemlist.append( Item(channel=__channel__, title =item.title+" [torrent]" , url=scrapedtorrent, action="play", server="torrent", thumbnail=item.thumbnail, folder=False) )
return itemlist
Re: Pulsar- nuevo torrent stream
Mensaje por neno1978 » 21 Nov 2014, 16:17
mi fallo es que usaba ([^"]+) en vez de ([^&]+)& en el torrent ¿que diferecia hay?
hay un par de cosas que quiereo que me expliques pero te las planteo después, primero mira, yo uso este
Código: Seleccionar todo
def findvideos(item):
logger.info("pelisalacarta.aquitorrent findvideos")
itemlist = []
data = scrapertools.cache_page(item.url)
data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
patron = '<td class="wrapper_pic_td">.*? '
patron+= 'alt="([^"]+)".*? '
patron+= 'href="(magnet[^"]+)".*?'
patron+= 'title="Visionado Online".*?'
patron += '<a href="http://www.bitlet.org/video/play.torrent=([^&]+)&.*?'
patron += '<br><br>([^<].*?)<br><br>'
matches = re.compile(patron,re.DOTALL).findall(data)
for scrapedtitle, scrapedmagnet, scrapedtorrent, scrapedplot in matches:
itemlist.append( Item(channel=__channel__, title =item.title+" [magnet]" , url=scrapedmagnet, plot=scrapedplot, action="play", server="torrent", thumbnail=item.thumbnail, folder=False) )
itemlist.append( Item(channel=__channel__, title =item.title+" [torrent]" , url=scrapedtorrent, plot=scrapedplot, action="play", server="torrent", thumbnail=item.thumbnail, folder=False) )
return itemlist
Re: Pulsar- nuevo torrent stream
Mensaje por neno1978 » 21 Nov 2014, 17:11
Ah! si, y clasicos Disney no funciona, la imagen no parte de de http sino <img src="/public/Herculesdisney.jpg" lo que se solucionaria con thumbnail=host+scrapedthumbnail pero claro, entonces fallarían los demás, y hasta ahi ya no llego . y los torrent igual, parten de <a href="/public/Hercules.Disney.DVDRIP.[www.aquitorrent.com].zip
Volver a “Sugerencias (estaría bien que hubiera...)”
- Ayuda sobre plugins
- ↳ tvalacarta
- ↳ Problemas (no me funciona...)
- ↳ Preguntas (cómo se hace...)
- ↳ Sugerencias (estaría bien que hubiera...)
- ↳ pelisalacarta
- ↳ Problemas (no me funciona...)
- ↳ Preguntas (cómo se hace...)
- ↳ Sugerencias (estaría bien que hubiera...)
- ↳ pelisalacarta (For Italian users)
- ↳ Problemi (Non mi funziona...)
- ↳ Domande (Come fare a...)
- ↳ Suggerimenti (Sarebbe bello che...)
- ↳ mywebtv
- ↳ Problemas (no me funciona...)
- ↳ Preguntas (cómo se hace...)
- ↳ Sugerencias (estaría bien que hubiera...)
- ↳ MediaExplorer
- ↳ Balandro
- ↳ Otros plugins
- ↳ Alfa
- ↳ Alfa (For Italian users)
- ↳ Tutoriales
- Ayuda sobre mediacenters
- ↳ XBMC / Kodi
- ↳ Plex
- ↳ Android
- ↳ Raspberry Pi
- ↳ Boxee
- ↳ WiiMC
- ↳ Enigma 2
- ↳ Otros media center
- Sugerencias
- ↳ Nuevos canales
- ↳ Mejoras
- Desarrolladores
- Comunidad
¿Qué es Mi media center?
Este es el foro oficial de soporte para pelisalacarta, tvalacarta y mywebtv.
También es un lugar para compartir tus experiencias con dispositivos multimedia y software media center, puede que encuentres algo interesante que ni siquiera sabías que se podía hacer.
Primeros pasos en Kodi

Si estás empezando con Kodi, o si estás interesado en sacarle más partido, puedes echar un vistazo a esta colección de video-tutoriales.
Aprenderás a crear y optimizar tu biblioteca, a instalar add-ons, a buscar subtítulos...
Cómo reportar un problema
Si tienes un problema en alguno de los plugins y quieres reportarlo, no olvides incluir el log.
Para que resulte útil tienes que activar la opción de "log completo" en el plugin, luego reiniciar Kodi y dar los pasos necesarios hasta que se produzca el problema.

Luego copia tu fichero de log, siguiendo las instrucciones que se describen en este enlace, e inclúyelo al final de la descripción de tu problema.
Aprende a programar para Kodi
Si sabes programar, esta serie de tutoriales que describen paso a paso cómo desarrollar tu propio add-on para Kodi.
Y si quieres añadir tus propios canales a pelisalacarta también te contamos paso a paso cómo hacerlo en este enlace.
¿Quién está conectado?
Usuarios navegando por este Foro: Semrush [Bot] y 1 invitado