')
diff --git a/plugin.video.alfa/channels/pelisadicto.json b/plugin.video.alfa/channels/pelisadicto.json
deleted file mode 100755
index 0d277199..00000000
--- a/plugin.video.alfa/channels/pelisadicto.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "id": "pelisadicto",
- "name": "Pelisadicto",
- "active": true,
- "adult": false,
- "language": ["cast", "lat"],
- "thumbnail": "pelisadicto.png",
- "banner": "pelisadicto.png",
- "categories": [
- "movie"
- ],
- "settings": [
- {
- "id": "include_in_global_search",
- "type": "bool",
- "label": "Incluir en busqueda global",
- "default": false,
- "enabled": true,
- "visible": true
- }
- ]
-}
\ No newline at end of file
diff --git a/plugin.video.alfa/channels/pelisadicto.py b/plugin.video.alfa/channels/pelisadicto.py
deleted file mode 100755
index 93996336..00000000
--- a/plugin.video.alfa/channels/pelisadicto.py
+++ /dev/null
@@ -1,220 +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 config, logger
-
-
-def mainlist(item):
- logger.info()
-
- itemlist = []
- itemlist.append(
- Item(channel=item.channel, title="Últimas agregadas", action="agregadas", url="http://pelisadicto.com",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, title="Listado por género", action="porGenero", url="http://pelisadicto.com"))
- itemlist.append(Item(channel=item.channel, title="Buscar", action="search", url="http://pelisadicto.com"))
-
- return itemlist
-
-
-def porGenero(item):
- logger.info()
-
- itemlist = []
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Acción", url="http://pelisadicto.com/genero/Acción/1",
- viewmode="movie_with_plot"))
- if config.get_setting("adult_mode") != 0:
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Adulto", url="http://pelisadicto.com/genero/Adulto/1",
- viewmode="movie_with_plot"))
- itemlist.append(Item(channel=item.channel, action="agregadas", title="Animación",
- url="http://pelisadicto.com/genero/Animación/1", viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Aventura", url="http://pelisadicto.com/genero/Aventura/1",
- viewmode="movie_with_plot"))
- itemlist.append(Item(channel=item.channel, action="agregadas", title="Biográfico",
- url="http://pelisadicto.com/genero/Biográfico/1", viewmode="movie_with_plot"))
- itemlist.append(Item(channel=item.channel, action="agregadas", title="Ciencia Ficción",
- url="http://pelisadicto.com/genero/Ciencia Ficción/1", viewmode="movie_with_plot"))
- itemlist.append(Item(channel=item.channel, action="agregadas", title="Cine Negro",
- url="http://pelisadicto.com/genero/Cine Negro/1", viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Comedia", url="http://pelisadicto.com/genero/Comedia/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Corto", url="http://pelisadicto.com/genero/Corto/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Crimen", url="http://pelisadicto.com/genero/Crimen/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Deporte", url="http://pelisadicto.com/genero/Deporte/1",
- viewmode="movie_with_plot"))
- itemlist.append(Item(channel=item.channel, action="agregadas", title="Documental",
- url="http://pelisadicto.com/genero/Documental/1", viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Drama", url="http://pelisadicto.com/genero/Drama/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Familiar", url="http://pelisadicto.com/genero/Familiar/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Fantasía", url="http://pelisadicto.com/genero/Fantasía/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Guerra", url="http://pelisadicto.com/genero/Guerra/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Historia", url="http://pelisadicto.com/genero/Historia/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Misterio", url="http://pelisadicto.com/genero/Misterio/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Música", url="http://pelisadicto.com/genero/Música/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Musical", url="http://pelisadicto.com/genero/Musical/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Romance", url="http://pelisadicto.com/genero/Romance/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Terror", url="http://pelisadicto.com/genero/Terror/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Thriller", url="http://pelisadicto.com/genero/Thriller/1",
- viewmode="movie_with_plot"))
- itemlist.append(
- Item(channel=item.channel, action="agregadas", title="Western", url="http://pelisadicto.com/genero/Western/1",
- viewmode="movie_with_plot"))
-
- return itemlist
-
-
-def search(item, texto):
- logger.info()
-
- '''
- texto_get = texto.replace(" ","%20")
- texto_post = texto.replace(" ","+")
- item.url = "http://pelisadicto.com/buscar/%s?search=%s" % (texto_get,texto_post)
- '''
-
- texto = texto.replace(" ", "+")
- item.url = "http://pelisadicto.com/buscar/%s" % texto
-
- try:
- return agregadas(item)
- # Se captura la excepci?n, para no interrumpir al buscador global si un canal falla
- except:
- import sys
- for line in sys.exc_info():
- logger.error("%s" % line)
- return []
-
-
-def agregadas(item):
- logger.info()
- itemlist = []
- '''
- # Descarga la pagina
- if "?search=" in item.url:
- url_search = item.url.split("?search=")
- data = scrapertools.cache_page(url_search[0], url_search[1])
- else:
- data = scrapertools.cache_page(item.url)
- logger.info("data="+data)
- '''
-
- data = scrapertools.cache_page(item.url)
- # logger.info("data="+data)
-
- # Extrae las entradas
- fichas = re.sub(r"\n|\s{2}", "", scrapertools.get_match(data, '
'))
-
- #

DVD
-
- patron = 'href="([^"]+)".*?' # url
- patron += 'src="([^"]+)" ' # thumbnail
- patron += 'alt="([^"]+)' # title
-
- matches = re.compile(patron, re.DOTALL).findall(fichas)
- for url, thumbnail, title in matches:
- url = urlparse.urljoin(item.url, url)
- thumbnail = urlparse.urljoin(url, thumbnail)
-
- itemlist.append(Item(channel=item.channel, action="findvideos", title=title + " ", fulltitle=title, url=url,
- thumbnail=thumbnail, show=title))
-
- # Paginación
- try:
-
- #
-
- current_page_number = int(scrapertools.get_match(item.url, '/(\d+)$'))
- item.url = re.sub(r"\d+$", "%s", item.url)
- next_page_number = current_page_number + 1
- next_page = item.url % (next_page_number)
- itemlist.append(Item(channel=item.channel, action="agregadas", title="Página siguiente >>", url=next_page,
- viewmode="movie_with_plot"))
- except:
- pass
-
- return itemlist
-
-
-def findvideos(item):
- logger.info()
-
- itemlist = []
- plot = ""
-
- data = re.sub(r"\n|\s{2}", "", scrapertools.cache_page(item.url))
-
- #
Sinopsis de 101 dálmatas
Pongo y Perdita, los dálmatas protagonistas, son una feliz pareja canina que vive rodeada de sus cachorros y con sus amos Roger y Anita. Pero su felicidad está amenazada. Cruella de Ville, una pérfida mujer que vive en una gran mansión y adora los abrigos de pieles, se entera de que los protagonistas tienen quince cachorros dálmatas. Entonces, la idea de secuestrarlos para hacerse un exclusivo abrigo de pieles se convierte en una obsesión enfermiza. Para hacer realidad su sueño contrata a dos ladrones.
-
- patron = " "
- patron += "
[^<]+
"
- patron += "
([^<]+)
"
- matches = re.compile(patron, re.DOTALL).findall(data)
- if matches:
- plot = matches[0]
-
- # Descarga la pagina
- data = scrapertools.cache_page(item.url)
- patron = '
.*?'
- patron += ' (.*?) | .*?(.*?) | .*?'
- matches = re.compile(patron, re.DOTALL).findall(data)
- for scrapedidioma, scrapedcalidad, scrapedserver, scrapedurl in matches:
- idioma = ""
- if "/img/1.png" in scrapedidioma: idioma = "Castellano"
- if "/img/2.png" in scrapedidioma: idioma = "Latino"
- if "/img/3.png" in scrapedidioma: idioma = "Subtitulado"
- title = item.title + " [" + scrapedcalidad + "][" + idioma + "][" + scrapedserver + "]"
-
- itemlist.append(
- Item(channel=item.channel, action="play", title=title, fulltitle=title, url=scrapedurl, thumbnail="",
- plot=plot, show=item.show))
- return itemlist
-
-
-def play(item):
- logger.info()
-
- itemlist = servertools.find_video_items(data=item.url)
-
- for videoitem in itemlist:
- videoitem.title = item.title
- videoitem.fulltitle = item.fulltitle
- videoitem.thumbnail = item.thumbnail
- videoitem.channel = item.channel
-
- return itemlist
diff --git a/plugin.video.alfa/channels/pelismagnet.py b/plugin.video.alfa/channels/pelismagnet.py
index 3adda429..d0cd6fc4 100644
--- a/plugin.video.alfa/channels/pelismagnet.py
+++ b/plugin.video.alfa/channels/pelismagnet.py
@@ -171,7 +171,7 @@ def episodios(item):
# post = "page=%s&x=34&y=14" % urllib.quote(item.url)
# response = httptools.downloadpage(url, post, follow_redirects=False).data
# url = scrapertools.find_single_match(response, 'Por inicial(.*?)')
- logger.info("data=" + data)
-
- patronvideos = '([^<]+)'
- matches = re.compile(patronvideos, re.DOTALL).findall(data)
-
- for scrapedurl, scrapedtitle in matches:
- title = scrapedtitle
- plot = ""
- url = urlparse.urljoin(item.url, scrapedurl)
- thumbnail = ""
- logger.debug("title=[" + title + "], url=[" + url + "], thumbnail=[" + thumbnail + "]")
-
- itemlist.append(
- Item(channel=item.channel, action='series', title=title, url=url, thumbnail=thumbnail, plot=plot))
-
- return itemlist
-
-
-def series(item):
- logger.info()
- itemlist = []
-
- '''
-
-
-
- '''
-
- data = scrapertools.cachePage(item.url)
- logger.info("data=" + data)
-
- patron = '
- Saving Hope 1x02 |
- |
-
- |
-
- '''
-
- data = scrapertools.cachePage(item.url)
-
- patron = '
]+>([^<]+)(.*?) 0:
- itemlist.append(Item(channel=item.channel, title="Añadir esta serie a la videoteca", url=item.url,
- action="add_serie_to_library", extra="episodios", show=item.show))
- itemlist.append(Item(channel=item.channel, title="Descargar todos los episodios de la serie", url=item.url,
- action="download_all_episodes", extra="episodios", show=item.show))
-
- return itemlist
-
-
-def extrae_idiomas(bloqueidiomas):
- logger.info("idiomas=" + bloqueidiomas)
- patronidiomas = '([a-z0-9]+).png"'
- idiomas = re.compile(patronidiomas, re.DOTALL).findall(bloqueidiomas)
- textoidiomas = ""
- language=[]
- for idioma in idiomas:
- if idioma == "1":
- textoidiomas = textoidiomas + "Español" + "/"
- if idioma == "2":
- textoidiomas = textoidiomas + "Latino" + "/"
- if idioma == "3":
- textoidiomas = textoidiomas + "VOSE" + "/"
- if idioma == "4":
- textoidiomas = textoidiomas + "VO" + "/"
- language.append(codigo_a_idioma(idioma))
- textoidiomas = textoidiomas[:-1]
- return textoidiomas, language
-
-
-def codigo_a_idioma(codigo):
- idioma = ""
- if codigo == "1":
- idioma = "Español"
- if codigo == "2":
- idioma = "Latino"
- if codigo == "3":
- idioma = "VOSE"
- if codigo == "4":
- idioma = "VO"
-
- return idioma
-
-
-def findvideos(item):
- logger.info()
- itemlist = []
-
- '''
-
-  |
- Nowvideo |
- Reproducir |
-
-
- '''
- # Descarga la pagina
- data = scrapertools.cachePage(item.url)
-
- patron = '([^<]+)