Re: Sugerencias de canales a agregar
Publicado: 07 Ene 2015, 01:50
Seriespepito vuelve a estar activa pero con nueva terminación. Seriespepito.to
Soporte oficial de pelisalacarta y tvalacarta - Ayuda con tu media center
https://www.mimediacenter.info/foro/
Código: Seleccionar todo
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para pordede
# 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 import jsontools
from core.item import Item
from servers import servertools
__category__ = "A"
__type__ = "generic"
__title__ = "Torrentestrenos"
__channel__ = "torrentestrenos"
__language__ = "ES"
host = "http://www.torrentestrenos.com"
DEBUG = config.get_setting("debug")
def isGeneric():
return True
def login():
url = "http://www.torrentestrenos.com/index.php"
post = "login="+config.get_setting("torrentestrenosuser")+"&password="+config.get_setting("torrentestrenospassword")+"&Submit=ENTRAR"
data = scrapertools.cache_page(url,post=post)
def mainlist(item):
logger.info("pelisalacarta.torrentestrenos mainlist")
itemlist = []
if config.get_setting("torrentestrenosaccount")!="true":
itemlist.append( Item( channel=__channel__ , title="Habilita tu cuenta en la configuración..." , action="openconfig" , url="" , folder=False ) )
else:
login()
itemlist.append( Item(channel=__channel__, title="PelisMicroHD" , action="peliculas" , url="http://www.torrentestrenos.com/ver_torrents_41-id_en_peliculas_microhd.html" ))
itemlist.append( Item(channel=__channel__, title="PelisBluray-rip" , action="peliculas" , url="http://www.torrentestrenos.com/ver_torrents_33-id_en_peliculas_bluray--rip.html" ))
itemlist.append( Item(channel=__channel__, title="PelisDvd-Rip" , action="peliculas" , url="http://www.torrentestrenos.com/ver_torrents_9-id_en_peliculas_dvd--rip.html" ))
itemlist.append( Item(channel=__channel__, title="Series" , action="peliculas" , url="http://www.torrentestrenos.com/ver_torrents_10-id_en_series.html" ))
itemlist.append( Item(channel=__channel__, title="SeriesHD" , action="peliculas" , url="http://www.torrentestrenos.com/ver_torrents_38-id_en_series_hd.html" ))
itemlist.append( Item(channel=__channel__, action="search", title="Buscar...", url=""))
return itemlist
def openconfig(item):
if "xbmc" in config.get_platform() or "boxee" in config.get_platform():
config.open_settings( )
return []
def search(item,texto):
logger.info("[pelisalacarta.torrentestrenos search texto="+texto)
item.url = "http://www.torrentestrenos.com/main.php?q=%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.torrentstrenos peliculas")
itemlist = []
# Descarga la página
data = scrapertools.cache_page(item.url)
data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
#<div class="torrent-container-2 clearfix"><img class="torrent-image" src="uploads/torrents/images/thumbnails2/4441_step--up--all--in----blurayrip.jpg" alt="Imagen de Presentación" /><div class="torrent-info"><h4><a href ="/descargar_torrent_27233-id_step_up_all_in_microhd_1080p_ac3_5.1--castellano--ac3_5.1_ingles_subs.html">Step Up All In MicroHD 1080p AC3 5.1-Castellano-AC3 5.1 Ingles Subs</a> </h4><p>19-12-2014</p><p>Subido por: <strong>TorrentEstrenos</strong> en <a href="/ver_torrents_41-id_en_peliculas_microhd.html" title="Peliculas MICROHD">Peliculas MICROHD</a><br />Descargas <strong><a href="#" style="cursor:default">46</a></strong></p><a class="btn-download" href ="/descargar_torrent_27233-id_step_up_all_in_microhd_1080p_ac3_5.1--castellano--ac3_5.1_ingles_subs.html">Descargar</a></div></div>
patron = '<div class="torrent-container-2 clearfix">.*?'
patron += 'src="([^"]+)".*? '
patron += 'href ="([^"]+)".*?'
patron += '>([^<]+)</a>.*?'
patron += '<p>([^<]+)</p>'
matches = re.compile(patron,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
for scrapedthumbnail, scrapedurl, scrapedtitulo, scrapedcreatedate in matches:
scrapedtitulo = scrapedtitulo + "(Torrent:" + scrapedcreatedate + ")"
scrapedthumbnail = "http://www.torrentestrenos.com/" + scrapedthumbnail
scrapedurl = "http://www.torrentestrenos.com" + scrapedurl
itemlist.append( Item(channel=__channel__, title=scrapedtitulo, url=scrapedurl, action="findvideos", thumbnail=scrapedthumbnail, fulltitle=scrapedtitulo, folder=True) )
## Extrae el paginador ##
# a class="paginator-items" href="/ver_torrents_41-id_en_peliculas_microhd_pag_1.html" title="Pagina de torrent 1">1</a>
if "_pag_" in item.url:
current_page_number = int(scrapertools.get_match(item.url,'_pag_(\d+)'))
item.url = re.sub(r"_pag_\d+","_pag_%s",item.url)
else:
current_page_number = 1
item.url = item.url.replace(".html","_pag_%s.html")
next_page_number = current_page_number + 1
next_page = item.url % (next_page_number)
if next_page.replace("http://www.torrentestrenos.com","") in data:
itemlist.append( Item(channel=__channel__, title=">> siguiente", url=next_page, action="peliculas", folder=True) )
return itemlist
def findvideos(item):
logger.info("pelisalacarta.torrentestrenos findvideos")
itemlist = []
data = scrapertools.cache_page(item.url)
data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
patron = '<img class="torrent-image.*? '
patron+= 'src="([^"]+)".*?'
patron+= '<h4>([^<]+)</h4>.*?'
patron+= '</p><p>([^<]+)</p><p>.*?'
patron+= 'href =".*?l=([^"]+)"'
matches = re.compile(patron,re.DOTALL).findall(data)
for scrapedthumbnail, scrapedtitulo, scrapedplot, scrapedurl in matches:
scrapedthumbnail = "http://www.torrentestrenos.com/" + scrapedthumbnail
scrapedplot = scrapedplot.replace("á","a")
scrapedplot = scrapedplot.replace("í","i")
scrapedplot = scrapedplot.replace("é","e")
scrapedplot = scrapedplot.replace("ó","o")
scrapedplot = scrapedplot.replace("ú","u")
scrapedplot = scrapedplot.replace("ñ","ñ")
scrapedplot = scrapedplot.replace("Á","A")
scrapedplot = scrapedplot.replace("Í","I")
scrapedplot = scrapedplot.replace("É","E")
scrapedplot = scrapedplot.replace("Ó","O")
scrapedplot = scrapedplot.replace("Ú","U")
scrapedplot = scrapedplot.replace("Ñ","Ñ")
itemlist.append( Item(channel=__channel__, title =scrapedtitulo , url=scrapedurl, action="play", server="torrent", thumbnail=scrapedthumbnail, plot=scrapedplot, folder=False) )
return itemlist
mareao me tiene19:41:22 T:4636307456 NOTICE: [launcher.py] multiplatform channel
19:41:22 T:4636307456 NOTICE: [launcher.py] search
19:41:25 T:4636307456 NOTICE: [pelisalacarta.torrentestrenos search texto=malefica
19:41:25 T:4636307456 NOTICE: pelisalacarta.torrentstrenos peliculas
19:41:25 T:4636307456 NOTICE: [scrapertools.py] cachePage url=http://www.torrentestrenos.com/main.php?q=malefica
19:41:25 T:4636307456 NOTICE: [scrapertools.py] MODO_CACHE=2 (no cachear)
19:41:25 T:4636307456 NOTICE: [scrapertools.py] downloadpage
19:41:25 T:4636307456 NOTICE: [scrapertools.py] url=http://www.torrentestrenos.com/main.php?q=malefica
19:41:25 T:4636307456 NOTICE: [scrapertools.py] post=None
19:41:25 T:4636307456 NOTICE: [scrapertools.py] ficherocookies=/Users/ignaciobernal/Library/Application Support/Kodi/userdata/addon_data/plugin.video.pelisalacarta/cookies.dat
19:41:25 T:4636307456 NOTICE: [scrapertools.py] Importando cookielib
19:41:25 T:4636307456 NOTICE: [scrapertools.py] cookielib disponible
19:41:25 T:4636307456 NOTICE: [scrapertools.py] cambio en politicas
19:41:25 T:4636307456 NOTICE: [scrapertools.py] Hay cookies
19:41:25 T:4636307456 NOTICE: [scrapertools.py] Leyendo fichero cookies
19:41:25 T:4636307456 NOTICE: [scrapertools.py] opener usando urllib2 (cookielib)
19:41:25 T:4636307456 NOTICE: [scrapertools.py] petición GET
19:41:25 T:4636307456 NOTICE: [scrapertools.py] ---------------------------
19:41:25 T:4636307456 NOTICE: [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
19:41:25 T:4636307456 NOTICE: [scrapertools.py] ---------------------------
19:41:25 T:4636307456 NOTICE: [scrapertools.py] Peticion con timeout
19:41:28 T:4636307456 NOTICE: [scrapertools.py] ...hecha
19:41:28 T:4636307456 NOTICE: [scrapertools.py] Grabando cookies...
19:41:28 T:4636307456 NOTICE: [scrapertools.py] ...hecho
19:41:28 T:4636307456 NOTICE: [scrapertools.py] normal
19:41:28 T:4636307456 NOTICE: [scrapertools.py] Respuesta
19:41:28 T:4636307456 NOTICE: [scrapertools.py] ---------------------------
19:41:28 T:4636307456 NOTICE: [scrapertools.py] transfer-encoding=chunked
19:41:28 T:4636307456 NOTICE: [scrapertools.py] expires=Thu, 19 Nov 1981 08:52:00 GMT
19:41:28 T:4636307456 NOTICE: [scrapertools.py] vary=Accept-Encoding
19:41:28 T:4636307456 NOTICE: [scrapertools.py] server=Apache
19:41:28 T:4636307456 NOTICE: [scrapertools.py] connection=close
19:41:28 T:4636307456 NOTICE: [scrapertools.py] pragma=no-cache
19:41:28 T:4636307456 NOTICE: [scrapertools.py] cache-control=no-store, no-cache, must-revalidate, post-check=0, pre-check=0
19:41:28 T:4636307456 NOTICE: [scrapertools.py] date=Fri, 09 Jan 2015 18:42:27 GMT
19:41:28 T:4636307456 NOTICE: [scrapertools.py] content-type=text/html
19:41:28 T:4636307456 NOTICE: [scrapertools.py] ---------------------------
19:41:28 T:4636307456 NOTICE: [scrapertools.py] Descargado en 1 segundos
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 0 ('uploads/torrents/images/thumbnails2/7490_malefica----cartel----2.jpg', '/descargar_torrent_25334-id_malefica_dvdr_pal_dual_(castellano_--_ingles)_2014.html', 'Malefica DVDR PAL DUAL (Castellano - Ingles) 2014', '29-09-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 1 ('uploads/torrents/images/thumbnails2/6570_malefica----cartel----2.jpg', '/descargar_torrent_25008-id_malefica_3d_sbs_bluray_1080p_dts_5.1--ac3_5.1_castellano_dts_5.1--ingles+subs.html', 'Malefica 3D SBS BluRay 1080p DTS 5.1-AC3 5.1 Castellano DTS 5.1-Ingles+Subs', '14-09-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 2 ('uploads/torrents/images/thumbnails2/4710_malefica----ts----screener----espanol----castellano----2014.jpg', '/descargar_torrent_25006-id_malefica_bdremux_1080p_dts_5.1_castellano--dts--hd_5.1_ingles+subs.html', 'Malefica BDremux 1080p DTS 5.1 Castellano-DTS-HD 5.1 Ingles+Subs', '14-09-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 3 ('uploads/torrents/images/thumbnails2/1166_malefica----cartel----2.jpg', '/descargar_torrent_25005-id_malefica_microhd_1080p_dts_5.1--ac3_5.1--castellano--ac3_5.1_ingles+subs.html', 'Malefica MicroHD 1080p DTS 5.1-AC3 5.1-Castellano-AC3 5.1 Ingles+Subs', '14-09-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 4 ('uploads/torrents/images/thumbnails2/6364_malefica----cartel----2.jpg', '/descargar_torrent_25004-id_malefica_bluray_1080p_ac3_5.1_castellano_dts_5.1--ingles+subs.html', 'Malefica BluRay 1080p AC3 5.1 Castellano DTS 5.1-Ingles+Subs', '14-09-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 5 ('uploads/torrents/images/thumbnails2/4327_malefica--------camrip.jpg', '/descargar_torrent_25003-id_malefica_bluray_hdrip_ac3_5.1_espanol_castellano_2014_.html', 'Malefica BluRay HDRip AC3 5.1 Espa\xc3\xb1ol Castellano 2014 ', '14-09-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 6 ('uploads/torrents/images/thumbnails2/5830_malefica----cartel----2.jpg', '/descargar_torrent_24831-id_malefica_bluray_screener_espanol_castellano_2014_.html', 'Malefica BluRay Screener Espa\xc3\xb1ol Castellano 2014 ', '05-09-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 7 ('uploads/torrents/images/thumbnails2/3600_malefica----cartel----2.jpg', '/descargar_torrent_24464-id_malefica_dvd_rip_espanol_latino_2014_.html', 'Malefica DVD Rip Espa\xc3\xb1ol Latino 2014 ', '17-08-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 8 ('uploads/torrents/images/thumbnails2/7705_malefica----cartel----2.jpg', '/descargar_torrent_24463-id_malefica_dvd_screeener_espanol_castellano_2014_.html', 'Malefica DVD Screeener Espa\xc3\xb1ol Castellano 2014 ', '17-08-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 9 ('uploads/torrents/images/thumbnails2/7132_malefica----cartel----2.jpg', '/descargar_torrent_23057-id_malefica_ts_screener_espanol_castellano_2014_.html', 'Malefica TS Screener Espa\xc3\xb1ol Castellano 2014 ', '04-06-2014')
19:41:28 T:4636307456 NOTICE: [scrapertools.py] 10 ('uploads/torrents/images/thumbnails2/1947_malefica----cartel----2.jpg', '/descargar_torrent_22987-id_malefica_cam_rip_espanol_castellano_2014_.html', 'Malefica Cam Rip Espa\xc3\xb1ol Castellano 2014 ', '31-05-2014')
19:41:28 T:4636307456 NOTICE: <type 'exceptions.TypeError'>
19:41:28 T:4636307456 NOTICE: not all arguments converted during string formatting
19:41:28 T:4636307456 NOTICE: <traceback object at 0x6000046895d0>
19:41:28 T:4558884864 NOTICE: Thread BackgroundLoader start, auto delete: false
19:42:22 T:4649304064 WARNING: DARWINOSX: underflow (0 vs 4096 bytes)
19:45:49 T:4580970496 NOTICE: Thread LanguageInvoker start, auto delete: false
19:45:49 T:4580970496 NOTICE: -->Python Interpreter Initialized<--
19:45:49 T:4580970496 WARNING: CPythonInvoker(82): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
19:45:49 T:4580970496 NOTICE: Service: 3640 actors took 0.77213692665100098
Bueno ya hace dias que lo solucione , cutremente, pero solucionado , le he puesto un def buscador sin paf y listoneno1978 escribió:Vale ... se me ocurrio que el único cambio fue la paginación, y correcto si la quito funciona la búsqueda, pero no me parece una solución adecuada![]()
Otra cosita que me tiene loco, muchas veces, demasiadas, esta pag me da petición con time out; ¿se puede aumentar el time out?
Yo me he registrado sin problemas. Ya he visto todo lo que tienen, está bastante bien pero según dicen faltan todos los enlaces pero no es cierto de muchas series ya tienen enlaces. El funcionamiento es muy parecido a seriesly o pordede.pep2880 escribió:Hola!!!
Acabo de ver ésta página pero aún estoy esperando invitación. Es como seriesly.
http://Www.Series.mu
Cuando pueda registrarme ya os comento que tal esta.
Saludos
Pd: son de Panamá
-----------------------------------------pep2880 escribió:Hola!!!
Acabo de ver ésta página pero aún estoy esperando invitación. Es como seriesly.
http://Www.Series.mu
Cuando pueda registrarme ya os comento que tal esta.
Saludos
Pd: son de Panamá