no message

This commit is contained in:
paezner
2019-03-22 18:25:55 +01:00
parent 908fba039d
commit d468219e1e
2 changed files with 10 additions and 5 deletions
@@ -38,7 +38,7 @@ def videos(item):
logger.info()
itemlist = []
data = scrapertools.downloadpageGzip(item.url)
patron = '<div class="item-block item-normal col" >.*?'
patron = '<div class="item-block item-normal col".*?'
patron += '<a href="([^"]+)" title="([^"]+)">.*?'
patron += 'data-src="([^"]+)".*?'
patron += '</span> ([^"]+)<'
+9 -4
View File
@@ -81,16 +81,21 @@ def lista(item):
data = httptools.downloadpage(item.url).data
data = re.sub(r"\n|\r|\t|&nbsp;|<br>", "", data)
data = scrapertools.get_match(data,'class="thumbs-container">(.*?)<div class="clearfix">')
patron = '<p class="btime">([^"]+)</p>.*?href="([^"]+)".*?src="([^"]+)".*?title="([^"]+)"'
patron = '<p class="btime">([^"]+)</p>.*?'
patron += '>(.*?)<img width=.*?'
patron += '="([^"]+)" class="thumb.*?'
patron += 'title="([^"]+)".*?'
patron += 'href="([^"]+)"'
matches = re.compile(patron,re.DOTALL).findall(data)
for duracion,scrapedurl,scrapedthumbnail,scrapedtitle in matches:
for duracion,calidad,scrapedthumbnail,scrapedtitle,scrapedurl in matches:
url = scrapedurl
contentTitle = scrapedtitle
title = "[COLOR yellow]" + duracion + "[/COLOR] " + scrapedtitle
if ">HD<" in calidad:
title = "[COLOR yellow]" + duracion + "[/COLOR] " + "[COLOR red]" + "HD" + "[/COLOR] " + scrapedtitle
thumbnail = scrapedthumbnail
plot = ""
itemlist.append( Item(channel=item.channel, action="play" , title=title , url=url, thumbnail=thumbnail,
fanart=scrapedthumbnail, plot=plot, contentTitle = contentTitle))
fanart=scrapedthumbnail, plot=plot, contentTitle = scrapedtitle))
next_page = scrapertools.find_single_match(data,'<li><a class="pag-next" href="(.*?)">Next &gt;</a>')
if next_page!="":
next_page = urlparse.urljoin(item.url,next_page)