diff --git a/plugin.video.alfa/channels/animeflv.json b/plugin.video.alfa/channels/animeflv.json
index 01ed328b..81e1416a 100755
--- a/plugin.video.alfa/channels/animeflv.json
+++ b/plugin.video.alfa/channels/animeflv.json
@@ -37,6 +37,17 @@
"enabled": true,
"visible": true
},
+ {
+ "id": "filter_languages",
+ "type": "list",
+ "label": "Mostrar enlaces en idioma...",
+ "default": 0,
+ "enabled": true,
+ "visible": true,
+ "lvalues": [
+ "No filtrar"
+ ]
+ },
{
"id": "include_in_newest_anime",
"type": "bool",
diff --git a/plugin.video.alfa/channels/animeflv.py b/plugin.video.alfa/channels/animeflv.py
index ec68dd95..c7d80f6c 100644
--- a/plugin.video.alfa/channels/animeflv.py
+++ b/plugin.video.alfa/channels/animeflv.py
@@ -9,6 +9,22 @@ from core import jsontools
from core import scrapertools
from core.item import Item
from platformcode import logger
+from channels import filtertools
+from channels import autoplay
+
+list_language = ['No filtrar']
+logger.debug('lista_language: %s' % list_language)
+
+list_quality = ['default']
+list_servers = [
+ 'izanagi',
+ 'yourupload',
+ 'okru',
+ 'netutv',
+ 'openload',
+ 'streamango',
+ 'mp4upload'
+]
HOST = "https://animeflv.net/"
@@ -16,6 +32,8 @@ HOST = "https://animeflv.net/"
def mainlist(item):
logger.info()
+ autoplay.init(item.channel, list_servers, list_quality)
+
itemlist = list()
itemlist.append(Item(channel=item.channel, action="novedades_episodios", title="Últimos episodios", url=HOST))
@@ -35,6 +53,8 @@ def mainlist(item):
itemlist = renumbertools.show_option(item.channel, itemlist)
+ autoplay.show_option(item.channel, itemlist)
+
return itemlist
@@ -131,7 +151,7 @@ def novedades_episodios(item):
thumbnail = urlparse.urljoin(HOST, thumbnail)
new_item = Item(channel=item.channel, action="findvideos", title=title, url=url, show=show, thumbnail=thumbnail,
- fulltitle=title)
+ fulltitle=title, context = autoplay.context)
itemlist.append(new_item)
@@ -155,7 +175,7 @@ def novedades_anime(item):
thumbnail = urlparse.urljoin(HOST, thumbnail)
new_item = Item(channel=item.channel, action="episodios", title=title, url=url, thumbnail=thumbnail,
- fulltitle=title, plot=plot)
+ fulltitle=title, plot=plot, context = autoplay.context)
if _type != "Película":
new_item.show = title
new_item.context = renumbertools.context(item)
@@ -189,7 +209,7 @@ def listado(item):
thumbnail = urlparse.urljoin(HOST, thumbnail)
new_item = Item(channel=item.channel, action="episodios", title=title, url=url, thumbnail=thumbnail,
- fulltitle=title, plot=plot)
+ fulltitle=title, plot=plot, context = autoplay.context)
if _type == "Anime":
new_item.show = title
@@ -242,7 +262,7 @@ def episodios(item):
title = "%s: %sx%s" % (item.title, season, str(episode).zfill(2))
itemlist.append(item.clone(action="findvideos", title=title, url=url, thumbnail=thumb, fulltitle=title,
- fanart=item.thumbnail, contentType="episode"))
+ fanart=item.thumbnail, contentType="episode", context = autoplay.context))
else:
# no hay thumbnail
matches = re.compile(']+>(.*?)<', re.DOTALL).findall(data)
@@ -299,11 +319,15 @@ def findvideos(item):
if video_urls:
video_urls.sort(key=lambda v: int(v[0]))
itemlist.append(item.clone(title="Enlace encontrado en %s" % server, action="play",
- video_urls=video_urls))
+ video_urls=video_urls, language='No filtrar', quality ='default',
+ server=server))
else:
url = scrapertools.find_single_match(data, '"file":"([^"]+)"')
if url:
- itemlist.append(item.clone(title="Enlace encontrado en %s" % server, url=url, action="play"))
+ if server == 'izanagi':
+ server = 'directo'
+ itemlist.append(item.clone(title="Enlace encontrado en %s" % server, url=url, action="play",
+ language='No filtrar', quality ='default', server=server))
else:
aux_url.append(e)
@@ -315,6 +339,14 @@ def findvideos(item):
videoitem.channel = item.channel
videoitem.thumbnail = item.thumbnail
+ # Requerido para FilterTools
+
+ itemlist = filtertools.get_links(itemlist, item, list_language)
+
+ # Requerido para AutoPlay
+
+ autoplay.start(itemlist, item)
+
return itemlist
diff --git a/plugin.video.alfa/channels/animeshd.json b/plugin.video.alfa/channels/animeshd.json
index fdf04e49..293ac85a 100755
--- a/plugin.video.alfa/channels/animeshd.json
+++ b/plugin.video.alfa/channels/animeshd.json
@@ -21,8 +21,24 @@
"description": "First release"
}
],
- "categories": [
+ "categories": [
"latino",
"anime"
+ ],
+ "settings": [
+ {
+ "id": "filter_languages",
+ "type": "list",
+ "label": "Mostrar enlaces en idioma...",
+ "default": 0,
+ "enabled": true,
+ "visible": true,
+ "lvalues": [
+ "No filtrar",
+ "LAT",
+ "CAST",
+ "SUB"
+ ]
+ }
]
}
diff --git a/plugin.video.alfa/channels/animeshd.py b/plugin.video.alfa/channels/animeshd.py
index 3fd34f84..99e51916 100755
--- a/plugin.video.alfa/channels/animeshd.py
+++ b/plugin.video.alfa/channels/animeshd.py
@@ -8,6 +8,19 @@ from core import scrapertools
from core import servertools
from core.item import Item
from platformcode import logger
+from channels import autoplay
+from channels import filtertools
+
+IDIOMAS = {'Latino': 'LAT', 'Castellano':'CAST','Subtitulado': 'VOS'}
+list_language = IDIOMAS.values()
+logger.debug('lista_language: %s' % list_language)
+
+list_quality = ['default']
+list_servers = [
+ 'rapidvideo',
+ 'downace',
+ 'openload'
+]
tgenero = {"Comedia": "https://s7.postimg.org/ne9g9zgwb/comedia.png",
"Drama": "https://s16.postimg.org/94sia332d/drama.png",
@@ -35,6 +48,8 @@ headers = [['User-Agent', 'Mozilla/50.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/
def mainlist(item):
logger.info()
+
+ autoplay.init(item.channel, list_servers, list_quality)
itemlist = []
itemlist.append(item.clone(title="Ultimas",
@@ -65,6 +80,8 @@ def mainlist(item):
fanart='https://s30.postimg.org/pei7txpa9/buscar.png'
))
+ autoplay.show_option(item.channel, itemlist)
+
return itemlist
@@ -161,10 +178,16 @@ def episodios(item):
matches = re.compile(patron, re.DOTALL).findall(data)
for scrapedurl, scrapedlang, scrapedtitle in matches:
- language = scrapedlang
+ language = IDIOMAS[scrapedlang]
+
title = scrapedtitle + ' (%s)' % language
url = scrapedurl
- itemlist.append(item.clone(title=title, url=url, action='findvideos', language=language))
+ itemlist.append(item.clone(title=title,
+ url=url,
+ action='findvideos',
+ language=language,
+ quality ='default'
+ ))
return itemlist
@@ -180,6 +203,13 @@ def findvideos(item):
videoitem.channel = item.channel
videoitem.title = title
videoitem.action = 'play'
+ videoitem.language = item.language
+ # Requerido para FilterTools
+ itemlist = filtertools.get_links(itemlist, item, list_language)
+
+ # Requerido para AutoPlay
+
+ autoplay.start(itemlist, item)
return itemlist
diff --git a/plugin.video.alfa/channels/autoplay.py b/plugin.video.alfa/channels/autoplay.py
index f42a46d5..450b134e 100755
--- a/plugin.video.alfa/channels/autoplay.py
+++ b/plugin.video.alfa/channels/autoplay.py
@@ -381,10 +381,10 @@ def check_value(channel, itemlist):
quality_list = channel_node['quality'] = list()
for item in itemlist:
- if item.server not in server_list:
+ if item.server not in server_list and item.server !='':
server_list.append(item.server)
change = True
- if item.quality not in quality_list:
+ if item.quality not in quality_list and item.quality !='':
quality_list.append(item.quality)
change = True
diff --git a/plugin.video.alfa/channels/hdfull.json b/plugin.video.alfa/channels/hdfull.json
index c1512fa4..f0e4b9f1 100755
--- a/plugin.video.alfa/channels/hdfull.json
+++ b/plugin.video.alfa/channels/hdfull.json
@@ -49,6 +49,21 @@
"enabled": "!eq(-1,'')",
"visible": true
},
+ {
+ "id": "filter_languages",
+ "type": "list",
+ "label": "Mostrar enlaces en idioma...",
+ "default": 0,
+ "enabled": true,
+ "visible": true,
+ "lvalues": [
+ "No filtrar",
+ "Latino",
+ "Español",
+ "VOS",
+ "VOSE"
+ ]
+ },
{
"id": "include_in_global_search",
"type": "bool",
@@ -58,4 +73,4 @@
"visible": true
}
]
-}
\ No newline at end of file
+}
diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py
index 5156104b..19d1b90c 100755
--- a/plugin.video.alfa/channels/hdfull.py
+++ b/plugin.video.alfa/channels/hdfull.py
@@ -12,6 +12,20 @@ from core import servertools
from core.item import Item
from platformcode import config, logger
from platformcode import platformtools
+from channels import filtertools
+from channels import autoplay
+
+IDIOMAS = {'LAT': 'Latino', 'ESP': 'Español', 'ESPSUB': 'VOS', 'ENGSUB' : 'VOSE'}
+list_language = IDIOMAS.values()
+list_quality = ['RHDTV', 'HD0180M', 'HD720M', 'TS']
+list_servers = [
+ 'openload',
+ 'powvideo',
+ 'streamplay',
+ 'streamcloud',
+ 'nowvideo'
+
+]
host = "http://hdfull.tv"
@@ -42,7 +56,7 @@ def login():
def mainlist(item):
logger.info()
-
+ autoplay.init(item.channel, list_servers, list_quality)
itemlist = []
itemlist.append(Item(channel=item.channel, action="menupeliculas", title="Películas", url=host, folder=True))
@@ -56,6 +70,7 @@ def mainlist(item):
login()
itemlist.append(Item(channel=item.channel, action="settingCanal", title="Configuración...", url=""))
+ autoplay.show_option(item.channel, itemlist)
return itemlist
@@ -465,7 +480,8 @@ def episodios(item):
'id'] + ";3"
itemlist.append(Item(channel=item.channel, action="findvideos", title=title, fulltitle=title, url=url,
- thumbnail=thumbnail, show=item.show, folder=True, contentType="episode"))
+ thumbnail=thumbnail, show=item.show, folder=True, contentType="episode",
+ context =autoplay.context))
if config.get_videolibrary_support() and len(itemlist) > 0:
itemlist.append(Item(channel=item.channel, title="Añadir esta serie a la videoteca", url=url_targets,
@@ -696,11 +712,13 @@ def findvideos(item):
fanart = scrapertools.find_single_match(data, '