Página 1 de 1

Zentorrents caido help

Publicado: 21 Ene 2015, 07:49
por neno1978
Muy bubas, pues reconozco que no soy capaz de hacerlo funcionar de nuevo, estoy bloqueado :( ab si el master robalo me hecha una mano ;)

aparte de que hay que hacer varias modificaciones de paginas, para empezar he empezado recuperando "películas" con esto( 1080p, 720 etc, difieren en patrón pero eso para después)

Código: Seleccionar todo

#<div class="blogitem "><a title="En Un Patio De Paris [DVD Rip]" href="/peliculas/17937-en-un-patio-de-paris-dvd-rip"><div class="thumbnail_wrapper"><img alt="En Un Patio De Paris [DVD Rip]" src="http://www.zentorrents.com/images/articles/17/17937t.jpg" onload="imgLoaded(this)" /></div></a><div class="info"><div class="title"><a title="En Un Patio De Paris [DVD Rip]" href="/peliculas/17937-en-un-patio-de-paris-dvd-rip" class="contentpagetitleblog">En Un Patio De Paris [DVD Rip]</a></div><div class="createdate">21/01/2015</div><div class="text">[DVD Rip][AC3 5.1 Español Castellano][2014] Antoine es un m&uacute;sico de 40 a&ntilde;os que de pronto decide abandonar su carrera.</div></div><div class="clr"></div></div>
pero el finvideos me da error script con esto

Código: Seleccionar todo

def findvideos(item):
    logger.info("pelisalacarta.zentorrents findvideos")
    
    itemlist = []
    
    # Descarga la página
    data = scrapertools.cache_page(item.url)
    data = re.sub(r"\n|\r|\t|\s{2}|&nbsp;","",data)
    #href="http://www.zentorrents.com/index.php?option=com_profiles&view=download&id=17833&f=aHR0cDovL3d3dy5kaXZ4YXRvcGUuY29tL3RvcnJlbnQvbGEtaXNsYS1taW5pbWEtMjAxNC0tZW4tYmx1cmF5LTEwODBw&tmpl=component">
    patron = 'href="([^"]+)">'
    url_torrent = scrapertools.get_match(data, patron)
    
    # Descarga la página
    data = re.sub(r"\n|\r|\t|\s{2}|&nbsp;","",data)
    data = scrapertools.cache_page(url)
    #{ window.location = 'http://www.divxatope.com/torrent/la-isla-minima-2014--en-bluray-1080p'
    patron = "{ window.location = '([^']+)"
    url_torrent = scrapertools.get_match(data, patron)
    
    itemlist.append( Item(channel=__channel__, title = "[torrent]", action="play", url=url_torrent, server="torrent", folder=False) )
    
    
    return itemlist
estoy bloqueado , la verdad ;)

Re: Zentorrents caido help

Publicado: 21 Ene 2015, 10:17
por neno1978
bueno sigo emperrao :twisted:

si lo hago así

Código: Seleccionar todo

def findvideos(item):
    logger.info("pelisalacarta.zentorrents findvideos")
    
    itemlist = []
    
    # Descarga la página
    data = scrapertools.cache_page(item.url)
    data = re.sub(r"\n|\r|\t|\s{2}|&nbsp;","",data)
    
    patron = '<div class="descargatext">.*?'
    patron += '<img alt="([^<]+)" '
    patron += 'src="([^"]+)".*? '
    patron += 'href="([^"]+)"'
    
    
    matches = re.compile(patron,re.DOTALL).findall(data)
    scrapertools.printMatches(matches)
    
    for scrapedtitulo, scrapedthumbnail, scrapedurl in matches:
    
        itemlist.append( Item(channel=__channel__, title =scrapedtitulo , thumbnail=scrapedthumbnail, url=scrapedurl, action="play", server="torrent", folder=False) )
    
    
    return itemlist
me da este fallo

Código: Seleccionar todo

10:15:45 T:4597731328  NOTICE: [servertools.py] servidor de torrent importado
10:15:45 T:4597731328  NOTICE: [servertools.py] invocando a torrent.get_video_url
10:15:45 T:4597731328  NOTICE: [torrent.py] server=torrent, la url es la buena
10:15:45 T:4597731328  NOTICE: #### url: http://www.zentorrents.com/index.php?option=com_profiles&view=download&id=17835&f=aHR0cDovL3plbnRvcnJlbnRzLnBhbGFzYWthLm5ldC9nZXRfdG9ycmVudC5waHA/aWQ9MjI1MDI=&tmpl=component
10:15:46 T:4597731328  NOTICE: Traceback (most recent call last):
10:15:46 T:4597731328  NOTICE:   File "/Users/ignaciobernal/Library/Application Support/Kodi/addons/plugin.video.pelisalacarta/servers/servertools.py", line 227, in resolve_video_urls_for_playing
10:15:46 T:4597731328  NOTICE:     video_urls = server_connector.get_video_url( page_url=url , video_password=video_password )
10:15:46 T:4597731328  NOTICE:   File "/Users/ignaciobernal/Library/Application Support/Kodi/addons/plugin.video.pelisalacarta/servers/torrent.py", line 19, in get_video_url
10:15:46 T:4597731328  NOTICE:     link = from_torrent_url(page_url)
10:15:46 T:4597731328  NOTICE:   File "/Users/ignaciobernal/Library/Application Support/Kodi/addons/plugin.video.pelisalacarta/servers/torrent.py", line 37, in from_torrent_url
10:15:46 T:4597731328  NOTICE:     metadata = bencode.bdecode(torrent_data)
10:15:46 T:4597731328  NOTICE:   File "/Users/ignaciobernal/Library/Application Support/Kodi/addons/plugin.video.pelisalacarta/lib/bencode/__init__.py", line 68, in bdecode
10:15:46 T:4597731328  NOTICE:     raise BTFailure("not a valid bencoded string")
10:15:46 T:4597731328  NOTICE: BTFailure: not a valid bencoded string
10:16:45 T:4594089984 WARNING: DARWINOSX: underflow (0 vs 4096 bytes)
 
:evil: :evil:

bueno, bueno..un poco de luz ;)
si le añado esto

Código: Seleccionar todo

def play(item):

    data = scrapertools.cache_page(item.url)
    logger.info("data="+data)
    itemlist = []

    link = scrapertools.get_match(data,"{ window.location = '([^']+)")
    link = urlparse.urljoin(item.url,link)
    logger.info("link="+link)

    itemlist.append( Item(channel=__channel__, action="play", server="torrent", title="torrent" , url=link , folder=False) )

    return itemlist

ya me tiran las pelos 1080 y 720 ..por lo visto series y películas van de otra manera.."ufú quilo" ;) bueno, sigo viéndolo , cualquier ayuda será bien venida

Re: Zentorrents caido help

Publicado: 21 Ene 2015, 16:18
por neno1978
Bueno , aqui si que me paro porque no entiendo nada. las películas teniendo la misma, la misma estructura que 1080 y 720

Código: Seleccionar todo

patron = '<div class="descargatext">.*?'
    patron += '<img alt="([^<]+)" '
    patron += 'src="([^"]+)".*? '
    patron += 'href="([^"]+)"'
no lo cojee. es decir películas no, películas 1080 y 720 si y me da un lob con esto que no entiendo

Código: Seleccionar todo

                                                handle=urlopen(req)
                                              File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.8_x86_64-target/lib/python2.6/urllib2.py", line 126, in urlopen
                                              File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.8_x86_64-target/lib/python2.6/urllib2.py", line 397, in open
                                              File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.8_x86_64-target/lib/python2.6/urllib2.py", line 510, in http_response
                                              File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.8_x86_64-target/lib/python2.6/urllib2.py", line 435, in error
                                              File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.8_x86_64-target/lib/python2.6/urllib2.py", line 369, in _call_chain
                                              File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.8_x86_64-target/lib/python2.6/urllib2.py", line 518, in http_error_default
                                            HTTPError: HTTP Error 404: Not Found
16:11:47 T:4607045632  NOTICE: Thread BackgroundLoader start, auto delete: false
 
y un tanto pasa con las series, con un patrón correcto, no devuelve nada. No entiendo nada .... :(

Re: Zentorrents caido help

Publicado: 28 Ene 2015, 11:21
por neno1978
descarga del canal funcionando y modificado viewtopic.php?f=6&t=6518