Update divxatope.py
This commit is contained in:
@@ -258,12 +258,11 @@ def findvideos(item):
|
|||||||
|
|
||||||
# Descarga la pagina
|
# Descarga la pagina
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url).data
|
||||||
|
|
||||||
item.plot = scrapertools.find_single_match(data, '<div class="post-entry" style="height:300px;">(.*?)</div>')
|
item.plot = scrapertools.find_single_match(data, '<div class="post-entry" style="height:300px;">(.*?)</div>')
|
||||||
item.plot = scrapertools.htmlclean(item.plot).strip()
|
item.plot = scrapertools.htmlclean(item.plot).strip()
|
||||||
item.contentPlot = item.plot
|
item.contentPlot = item.plot
|
||||||
|
|
||||||
link = scrapertools.find_single_match(data, 'href="http://(?:tumejorserie|tumejorjuego).*?link=([^"]+)"')
|
link = scrapertools.find_single_match(data, 'href.*?=.*?"http:\/\/(?:tumejorserie|tumejorjuego).*?link=([^"]+)"')
|
||||||
if link != "":
|
if link != "":
|
||||||
link = "http://www.divxatope1.com/" + link
|
link = "http://www.divxatope1.com/" + link
|
||||||
logger.info("torrent=" + link)
|
logger.info("torrent=" + link)
|
||||||
@@ -272,12 +271,16 @@ def findvideos(item):
|
|||||||
url=link, thumbnail=servertools.guess_server_thumbnail("torrent"), plot=item.plot, folder=False,
|
url=link, thumbnail=servertools.guess_server_thumbnail("torrent"), plot=item.plot, folder=False,
|
||||||
parentContent=item))
|
parentContent=item))
|
||||||
|
|
||||||
patron = "<div class=\"box1\"[^<]+<img[^<]+</div[^<]+"
|
patron = '<div class=\"box1\"[^<]+<img[^<]+<\/div[^<]+<div class="box2">([^<]+)<\/div[^<]+<div class="box3">([^<]+)'
|
||||||
patron += '<div class="box2">([^<]+)</div[^<]+'
|
patron += '<\/div[^<]+<div class="box4">([^<]+)<\/div[^<]+<div class="box5"><a href=(.*?) rel.*?'
|
||||||
patron += '<div class="box3">([^<]+)</div[^<]+'
|
patron += '<\/div[^<]+<div class="box6">([^<]+)<'
|
||||||
patron += '<div class="box4">([^<]+)</div[^<]+'
|
|
||||||
patron += '<div class="box5">(.*?)</div[^<]+'
|
#patron = "<div class=\"box1\"[^<]+<img[^<]+</div[^<]+"
|
||||||
patron += '<div class="box6">([^<]+)<'
|
#patron += '<div class="box2">([^<]+)</div[^<]+'
|
||||||
|
#patron += '<div class="box3">([^<]+)</div[^<]+'
|
||||||
|
#patron += '<div class="box4">([^<]+)</div[^<]+'
|
||||||
|
#patron += '<div class="box5">(.*?)</div[^<]+'
|
||||||
|
#patron += '<div class="box6">([^<]+)<'
|
||||||
matches = re.compile(patron, re.DOTALL).findall(data)
|
matches = re.compile(patron, re.DOTALL).findall(data)
|
||||||
scrapertools.printMatches(matches)
|
scrapertools.printMatches(matches)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user