dentaku65 escribió:danteal escribió:Ho guys, I found a problem on cineblog.FM
It doesn't work. Also The TV series on piratestreaming.
For cineblogfm I got an error too... I'll check asap... for piratestreaming I do not have any arrors...
As I said already, it's the scrapedplot.
if you put this instead:
Código: Seleccionar todo
def peliculas(item):
logger.info("pelisalacarta.cineblogfm peliculas")
itemlist = []
# Descarga la pagina
data = scrapertools.cache_page(item.url)
# Extrae las entradas (carpetas)
patron = '<div class="short-story">\s*'
patron += '<a href="(.*?)" title="(.*?)">\s*'
patron += '<img.*?:url\((.*?)\)'
matches = re.compile(patron,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
for scrapedurl,scrapedtitle,scrapedthumbnail in matches:
if (DEBUG): logger.info("title=["+scrapedtitle+"], url=["+scrapedurl+"], thumbnail=["+scrapedthumbnail+"]")
itemlist.append( Item(channel=__channel__, action="findvid_serie" if item.extra == "serie" else "findvideos", title=scrapedtitle, url=scrapedurl , thumbnail=scrapedthumbnail , viewmode="movie_with_plot", fanart=scrapedthumbnail , folder=True ) )
# Extrae el paginador
patronvideos = '<span class="nav_ext">...</span> <a href=".*?">.*?</a> <a href="(.*?)">Avanti</a></div></div>'
matches = re.compile(patronvideos,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
if len(matches)>0:
scrapedurl = urlparse.urljoin(item.url,matches[0])
itemlist.append( Item(channel=__channel__, extra=item.extra, action="peliculas", title="[COLOR orange]Avanti >>[/COLOR]" , url=scrapedurl , thumbnail="http://2.bp.blogspot.com/-fE9tzwmjaeQ/UcM2apxDtjI/AAAAAAAAeeg/WKSGM2TADLM/s1600/pager+old.png", folder=True) )
return itemlist
It works no problem, but I see dentaku already removed plots ATM.
Another problem with the channel is it does not extract the tv shows' episodes.
EDIT: just fixed it, please check and report any other problem.