diff --git a/plugin.video.alfa/channels/teledocumentales.py b/plugin.video.alfa/channels/teledocumentales.py deleted file mode 100755 index 4611a07b..00000000 --- a/plugin.video.alfa/channels/teledocumentales.py +++ /dev/null @@ -1,109 +0,0 @@ -# -*- coding: utf-8 -*- - -import re -import urlparse - -from core import scrapertools -from core import servertools -from core.item import Item -from platformcode import logger - - -def mainlist(item): - logger.info() - - itemlist = [] - itemlist.append(Item(channel=item.channel, action="ultimo", title="Últimos Documentales", - url="http://www.teledocumentales.com/", viewmode="movie_with_plot")) - itemlist.append(Item(channel=item.channel, action="ListaCat", title="Listado por Genero", - url="http://www.teledocumentales.com/")) - - return itemlist - - -def ultimo(item): - logger.info() - itemlist = [] - - data = scrapertools.cachePage(item.url) - - # Extrae las entradas - patron = '
' - matches = re.compile(patron, re.DOTALL).findall(data) - print "manolo" - print matches - - for match in matches: - scrapedtitle = scrapertools.get_match(match, '([^([^<]+)
') - itemlist.append( - Item(channel=item.channel, action="play", title=scrapedtitle, url=scrapedurl, thumbnail=scrapedthumbnail, - plot=scrapedplot, fanart=scrapedthumbnail)) - - # Extrae la marca de siguiente pagina - try: - next_page = scrapertools.get_match(data, '
Transformers: Dark of the Moon 2011 - #
- - patron = '