diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py
index e0fec7f2..08eee38d 100644
--- a/plugin.video.alfa/channels/hdfull.py
+++ b/plugin.video.alfa/channels/hdfull.py
@@ -13,7 +13,7 @@ from core.item import Item
from platformcode import config, logger
from platformcode import platformtools
-host = "https://hdfull.tv"
+host = "https://hdfull.me"
if config.get_setting('hdfulluser', 'hdfull'):
account = True
@@ -39,23 +39,10 @@ def login():
httptools.downloadpage(host, post=post)
-def set_host():
- global host
- logger.info()
-
- hosts_list= [host, 'https://hdfull.me']
- for url in hosts_list:
- data = httptools.downloadpage(url, only_headers=True)
- if data.sucess:
- host = url
- break
def mainlist(item):
logger.info()
-
itemlist = []
- set_host()
-
itemlist.append(Item(channel=item.channel, action="menupeliculas", title="Películas", url=host, folder=True))
itemlist.append(Item(channel=item.channel, action="menuseries", title="Series", url=host, folder=True))
itemlist.append(Item(channel=item.channel, action="search", title="Buscar..."))
@@ -355,14 +342,14 @@ def fichas(item):
if str != "": title += str
if item.title == "Buscar...":
- tag_type = scrapertools.get_match(url, 'l.tv/([^/]+)/')
+ bus = host[-4:]
+ tag_type = scrapertools.find_single_match(url, '%s/([^/]+)/' %bus)
title += " - [COLOR blue]" + tag_type.capitalize() + "[/COLOR]"
itemlist.append(
Item(channel=item.channel, action=action, title=title, url=url, fulltitle=title, thumbnail=thumbnail,
show=show, folder=True, contentType=contentType, contentTitle=contentTitle,
language =language, infoLabels=infoLabels))
-
## Paginación
next_page_url = scrapertools.find_single_match(data, '.raquo;')
if next_page_url != "":
@@ -760,7 +747,7 @@ def agrupa_datos(data):
def extrae_idiomas(bloqueidiomas):
- logger.info("idiomas=" + bloqueidiomas)
+ logger.info()
language=[]
textoidiomas = ''
patronidiomas = '([a-z0-9]+).png"'
diff --git a/plugin.video.alfa/channels/maxipelis.json b/plugin.video.alfa/channels/maxipelis.json
deleted file mode 100644
index f39bd6f4..00000000
--- a/plugin.video.alfa/channels/maxipelis.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "id": "maxipelis",
- "name": "Maxipelis",
- "active": true,
- "adult": false,
- "language": ["cast", "lat"],
- "thumbnail": "http://www.maxipelis.net/wp-content/uploads/2016/12/applogo.png",
- "banner": "",
- "categories": [
- "movie"
- ],
- "settings": [
- {
- "id": "include_in_global_search",
- "type": "bool",
- "label": "Incluir en busqueda global",
- "default": true,
- "enabled": true,
- "visible": true
- }
- ]
-}
diff --git a/plugin.video.alfa/channels/maxipelis.py b/plugin.video.alfa/channels/maxipelis.py
deleted file mode 100644
index 8f6b07de..00000000
--- a/plugin.video.alfa/channels/maxipelis.py
+++ /dev/null
@@ -1,152 +0,0 @@
-# -*- coding: utf-8 -*-
-# ------------------------------------------------------------
-# Alfa
-# ------------------------------------------------------------
-import urlparse,urllib2,urllib,re
-import os, sys
-
-from core import jsontools as json
-from core import scrapertools
-from core import servertools
-from core.item import Item
-from platformcode import config, logger
-from core import httptools
-from core import tmdb
-
-host = 'http://www.maxipelis.net'
-
-
-def mainlist(item):
- logger.info()
- itemlist = []
- itemlist.append(Item(channel=item.channel, title="Novedades" , action="peliculas", url=host + "/pelicula"))
-
- itemlist.append(Item(channel=item.channel, title="Categorias" , action="categorias", url=host))
- itemlist.append(Item(channel=item.channel, title="Buscar", action="search"))
- return itemlist
-
-
-def search(item, texto):
- logger.info()
- texto = texto.replace(" ", "+")
- item.url = host + "/?s=%s" % texto
-
- try:
- return sub_search(item)
-
- except:
- import sys
- for line in sys.exc_info():
- logger.error("%s" % line)
- return []
-
-
-def sub_search(item):
- logger.info()
- itemlist = []
- data = httptools.downloadpage(item.url).data
- data = re.sub(r"\n|\r|\t| |
", "", data)
-
- patron = '
(.*?)
' - matches = scrapertools.find_multiple_matches(data, patron) - - for url,img,name,plot in matches: - itemlist.append(item.clone(channel=item.channel, action="findvideos", title=name, url=url, plot=plot, - thumbnail=img)) - - paginacion = scrapertools.find_single_match(data, '