Update hdfull.py

This commit is contained in:
Intel1
2017-08-19 11:08:29 -05:00
committed by GitHub
parent 073f39a523
commit 60744be66a
+25 -4
View File
@@ -12,6 +12,20 @@ from core import servertools
from core.item import Item from core.item import Item
from platformcode import config, logger from platformcode import config, logger
from platformcode import platformtools 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" host = "http://hdfull.tv"
@@ -42,7 +56,7 @@ def login():
def mainlist(item): def mainlist(item):
logger.info() logger.info()
autoplay.init(item.channel, list_servers, list_quality)
itemlist = [] itemlist = []
itemlist.append(Item(channel=item.channel, action="menupeliculas", title="Películas", url=host, folder=True)) itemlist.append(Item(channel=item.channel, action="menupeliculas", title="Películas", url=host, folder=True))
@@ -56,6 +70,7 @@ def mainlist(item):
login() login()
itemlist.append(Item(channel=item.channel, action="settingCanal", title="Configuración...", url="")) itemlist.append(Item(channel=item.channel, action="settingCanal", title="Configuración...", url=""))
autoplay.show_option(item.channel, itemlist)
return itemlist return itemlist
@@ -465,7 +480,8 @@ def episodios(item):
'id'] + ";3" 'id'] + ";3"
itemlist.append(Item(channel=item.channel, action="findvideos", title=title, fulltitle=title, url=url, 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: 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, 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, '<div style="background-image.url. ([^\s]+)') fanart = scrapertools.find_single_match(data, '<div style="background-image.url. ([^\s]+)')
if account: if account:
url += "###" + id + ";" + type url += "###" + id + ";" + type
logger.debug('idioma: %s'%idioma)
logger.debug('IDIOMAS[idioma]: %s' % IDIOMAS[idioma])
enlaces.append( enlaces.append(
Item(channel=item.channel, action="play", title=title, fulltitle=title, url=url, thumbnail=thumbnail, Item(channel=item.channel, action="play", title=title, fulltitle=title, url=url, thumbnail=thumbnail,
plot=plot, fanart=fanart, show=item.show, folder=True, server=servername, infoLabels=infolabels, plot=plot, fanart=fanart, show=item.show, folder=True, server=servername, infoLabels=infolabels,
contentTitle=item.contentTitle, contentType=item.contentType, tipo=option)) contentTitle=item.contentTitle, contentType=item.contentType, tipo=option, language =
IDIOMAS[idioma], quality=calidad, context= autoplay.context))
enlaces.sort(key=lambda it: it.tipo, reverse=True) enlaces.sort(key=lambda it: it.tipo, reverse=True)
itemlist.extend(enlaces) itemlist.extend(enlaces)
@@ -713,6 +731,9 @@ def findvideos(item):
except: except:
pass pass
itemlist = filtertools.get_links(itemlist, item, list_language)
autoplay.start(itemlist, item)
return itemlist return itemlist