From 62c386c2846cee2110bee47fbe96432d3abd273d Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Wed, 23 May 2018 11:51:33 -0500
Subject: [PATCH] cinedetodo: nuevo canal
---
plugin.video.alfa/channels/cinedetodo.json | 75 ++++++++
plugin.video.alfa/channels/cinedetodo.py | 207 +++++++++++++++++++++
2 files changed, 282 insertions(+)
create mode 100644 plugin.video.alfa/channels/cinedetodo.json
create mode 100644 plugin.video.alfa/channels/cinedetodo.py
diff --git a/plugin.video.alfa/channels/cinedetodo.json b/plugin.video.alfa/channels/cinedetodo.json
new file mode 100644
index 00000000..037cbb3b
--- /dev/null
+++ b/plugin.video.alfa/channels/cinedetodo.json
@@ -0,0 +1,75 @@
+{
+ "id": "cinedetodo",
+ "name": "CINEDETODO",
+ "active": true,
+ "adult": false,
+ "language": ["lat"],
+ "thumbnail": "https://s31.postimg.cc/win1ffxyj/cinedetodo.png",
+ "banner": "",
+ "version": 1,
+ "categories": [
+ "movies"
+ ],
+ "settings": [
+ {
+ "id": "include_in_global_search",
+ "type": "bool",
+ "label": "Incluir en busqueda global",
+ "default": false,
+ "enabled": false,
+ "visible": false
+ },
+ {
+ "id": "filter_languages",
+ "type": "list",
+ "label": "Mostrar enlaces en idioma...",
+ "default": 0,
+ "enabled": true,
+ "visible": true,
+ "lvalues": [
+ "No filtrar",
+ "LAT"
+ ]
+ },
+ {
+ "id": "include_in_newest_peliculas",
+ "type": "bool",
+ "label": "Incluir en Novedades - Peliculas",
+ "default": true,
+ "enabled": true,
+ "visible": true
+ },
+ {
+ "id": "include_in_newest_infantiles",
+ "type": "bool",
+ "label": "Incluir en Novedades - Infantiles",
+ "default": true,
+ "enabled": true,
+ "visible": true
+ },
+ {
+ "id": "include_in_newest_latino",
+ "type": "bool",
+ "label": "Incluir en Novedades - latino",
+ "default": true,
+ "enabled": true,
+ "visible": true
+ },
+ {
+ "id": "include_in_newest_terror",
+ "type": "bool",
+ "label": "Incluir en Novedades - Terror",
+ "default": true,
+ "enabled": true,
+ "visible": true
+ },
+ {
+ "id": "include_in_newest_documentales",
+ "type": "bool",
+ "label": "Incluir en Novedades - Documentales",
+ "default": true,
+ "enabled": true,
+ "visible": true
+ }
+ ]
+}
diff --git a/plugin.video.alfa/channels/cinedetodo.py b/plugin.video.alfa/channels/cinedetodo.py
new file mode 100644
index 00000000..6ada755c
--- /dev/null
+++ b/plugin.video.alfa/channels/cinedetodo.py
@@ -0,0 +1,207 @@
+# -*- coding: utf-8 -*-
+# -*- Channel CinemaHD -*-
+# -*- Created for Alfa-addon -*-
+# -*- By the Alfa Develop Group -*-
+
+import re
+import urllib
+from channelselector import get_thumb
+from core import httptools
+from core import scrapertools
+from core import servertools
+from core import tmdb
+from core.item import Item
+from platformcode import config, logger
+from channels import autoplay
+from channels import filtertools
+
+
+host = 'http://www.cinedetodo.com/'
+
+IDIOMAS = {'Latino': 'LAT'}
+list_language = IDIOMAS.values()
+list_quality = []
+list_servers = ['fastplay', 'rapidvideo', 'streamplay', 'flashx', 'streamito', 'streamango', 'vidoza']
+
+
+def mainlist(item):
+ logger.info()
+
+ autoplay.init(item.channel, list_servers, list_quality)
+
+ itemlist = list()
+ itemlist.append(item.clone(title="Ultimas", action="list_all", url=host, thumbnail=get_thumb('last', auto=True)))
+ itemlist.append(item.clone(title="Generos", action="section", section='genre',
+ thumbnail=get_thumb('genres', auto=True)))
+ # itemlist.append(item.clone(title="Por Calidad", action="section", section='quality',
+ # thumbnail=get_thumb('quality', auto=True)))
+ itemlist.append(item.clone(title="Alfabetico", action="section", section='alpha',
+ thumbnail=get_thumb('alphabet', auto=True)))
+ itemlist.append(item.clone(title="Buscar", action="search", url=host+'?s=',
+ thumbnail=get_thumb('search', auto=True)))
+
+ autoplay.show_option(item.channel, itemlist)
+
+ return itemlist
+
+
+def get_source(url):
+ logger.info()
+ data = httptools.downloadpage(url).data
+ data = re.sub(r'"|\n|\r|\t| |
|\s{2,}', "", data)
+ return data
+
+
+def list_all(item):
+ logger.info()
+ itemlist = []
+
+ data = get_source(item.url)
+ if item.section == 'alpha':
+ patron = '\d+.*?(.*?).*?'
+ patron += '