Preparativos para seccion de terror en novedades

Doomtv agregado y funcionando
This commit is contained in:
Unknown
2017-09-30 12:19:08 -03:00
parent a0e262bee8
commit 18da225068
4 changed files with 20 additions and 3 deletions

8
plugin.video.alfa/channels/doomtv.json Executable file → Normal file
View File

@@ -47,6 +47,14 @@
"default": true,
"enabled": true,
"visible": true
},
{
"id": "include_in_newest_terror",
"type": "bool",
"label": "Incluir en Novedades - terror",
"default": true,
"enabled": true,
"visible": true
}
]
}

View File

@@ -203,9 +203,11 @@ def newest(categoria):
# categoria='peliculas'
try:
if categoria == 'peliculas':
item.url = host
item.url = host +'peliculas/page/1'
elif categoria == 'infantiles':
item.url = host + 'category/animacion/'
item.url = host + 'categoria/animacion/'
elif categoria == 'terror':
item.url = host + '/categoria/terror/'
itemlist = lista(item)
if itemlist[-1].title == 'Siguiente >>>':
itemlist.pop()

9
plugin.video.alfa/channels/news.py Executable file → Normal file
View File

@@ -46,6 +46,13 @@ def mainlist(item):
set_category_context(new_item)
itemlist.append(new_item)
logger.debug('list_canales: %s'%list_canales)
if list_canales['terror']:
thumbnail = get_thumb("channels_horror.png")
new_item = Item(channel=item.channel, action="novedades", extra="terror", title="Peliculas de miedo!",
thumbnail=thumbnail)
set_category_context(new_item)
itemlist.append(new_item)
if list_canales['infantiles']:
thumbnail = get_thumb("channels_children.png")
@@ -89,7 +96,7 @@ def set_category_context(item):
def get_channels_list():
logger.info()
list_canales = {'peliculas': [], 'infantiles': [], 'series': [], 'anime': [], 'documentales': []}
list_canales = {'peliculas': [], 'terror': [], 'infantiles': [], 'series': [], 'anime': [], 'documentales': []}
# Rellenar listas de canales disponibles
channels_path = os.path.join(config.get_runtime_path(), "channels", '*.json')

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB