.*?src="([^"]+)"')
- opt_data = scrapertools.find_single_match(data,'"%s">
.*?.*?
([^<]+)'%option).split('-')
- language = opt_data[0].strip()
- quality = opt_data[1].strip()
- if 'sub' in language.lower():
- language='VOSE'
- else:
- language = 'VO'
- if url != '' and 'youtube' not in url:
- itemlist.append(Item(channel=item.channel, title='%s', url=url, language=IDIOMAS[language], quality=quality,
- action='play'))
- elif 'youtube' in url:
- trailer = Item(channel=item.channel, title='Trailer', url=url, action='play', server='youtube')
-
- itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % '%s [%s] [%s]'%(i.server.capitalize(),
- i.language, i.quality))
- try:
- itemlist.append(trailer)
- except:
- pass
-
- # Requerido para FilterTools
- # itemlist = filtertools.get_links(itemlist, item, list_language)
-
- # Requerido para AutoPlay
-
- autoplay.start(itemlist, item)
-
- if config.get_videolibrary_support() and len(itemlist) > 0 and item.extra != 'findvideos':
- itemlist.append(
- Item(channel=item.channel, title='[COLOR yellow]Añadir esta pelicula a la videoteca[/COLOR]', url=item.url,
- action="add_pelicula_to_library", extra="findvideos", contentTitle=item.contentTitle))
-
-
- return itemlist
-
-
-def search(item, texto):
- logger.info()
- texto = texto.replace(" ", "+")
- item.url = item.url + texto
-
- if texto != '':
- return list_all(item)
- else:
- return []
-
-def newest(categoria):
- logger.info()
- itemlist = []
- item = Item()
- try:
- if categoria in ['peliculas']:
- item.url = host+'peliculas/'
-
- itemlist = list_all(item)
- if itemlist[-1].title == 'Siguiente >>':
- itemlist.pop()
- except:
- import sys
- for line in sys.exc_info():
- logger.error("{0}".format(line))
- return []
-
- return itemlist
diff --git a/channels/estrenosdoramas.json b/channels/estrenosdoramas.json
deleted file mode 100644
index 82519f8f..00000000
--- a/channels/estrenosdoramas.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "id": "estrenosdoramas",
- "name": "Estrenos Doramas",
- "active": true,
- "adult": false,
- "language": ["VOSE","LAT"],
- "thumbnail": "https://www.estrenosdoramas.net/wp-content/uploads/2016/08/estrenos-doramasss-net3.png",
- "banner": "",
- "categories": [
- "tvshow",
- "vos"
- ],
- "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",
- "VOSE",
- "VO",
- "LAT"
- ]
- }
- ]
- }
-
\ No newline at end of file
diff --git a/channels/estrenosdoramas.py b/channels/estrenosdoramas.py
deleted file mode 100644
index 253c92ab..00000000
--- a/channels/estrenosdoramas.py
+++ /dev/null
@@ -1,296 +0,0 @@
-# -*- coding: utf-8 -*-
-# -*- Channel Estreno Doramas -*-
-# -*- Created for Alfa-addon -*-
-# -*- By the BDamian (Based on channels from Alfa Develop Group) -*-
-
-import re
-
-from channels import autoplay
-from channels import filtertools
-from core import httptools
-from core import scrapertools
-from core import servertools
-from core import jsontools
-from core import tmdb
-from core.item import Item
-from platformcode import config, logger
-from channelselector import get_thumb
-import ast
-
-host = 'https://www.estrenosdoramas.net/'
-
-IDIOMAS = {'Latino': 'LAT', 'Vo':'VO', 'Vose': 'VOSE'}
-IDIOMA = "no filtrar"
-list_language = IDIOMAS.values()
-list_quality = []
-list_servers = ['verystream', 'openload', 'streamango', 'netutv', 'okru', 'mp4upload']
-
-def get_source(url, referer=None):
- logger.info()
- if referer is None:
- data = httptools.downloadpage(url).data
- else:
- data = httptools.downloadpage(url, headers={'Referer':referer}).data
- data = re.sub(r'\n|\r|\t| |
|\s{2,}', "", data)
- return data
-
-def mainlist(item):
- logger.info()
-
- autoplay.init(item.channel, list_servers, list_quality)
- itemlist = []
-
- itemlist.append(Item(channel= item.channel, title="Doramas", action="list_all",
- url=host + 'category/doramas-online',
- thumbnail=get_thumb('doramas', auto=True), type='dorama'))
-
- itemlist.append(Item(channel=item.channel, title="Películas", action="list_all",
- url=host + 'category/peliculas',
- thumbnail=get_thumb('movies', auto=True), type='movie'))
-
- itemlist.append(Item(channel=item.channel, title="Últimos capítulos", action="list_all",
- url=host + 'category/ultimos-capitulos-online',
- thumbnail=get_thumb('doramas', auto=True), type='movie'))
-
- itemlist.append(Item(channel=item.channel, title="Por Genero", action="menu_generos",
- url=host,
- thumbnail=get_thumb('doramas', auto=True), type='dorama'))
-
- itemlist.append(Item(channel=item.channel, title="Doblado Latino", action="list_all",
- url=host + 'category/latino',
- thumbnail=get_thumb('doramas', auto=True), type='dorama'))
-
- itemlist.append(Item(channel=item.channel, title = 'Buscar', action="search", url= host+'search/',
- thumbnail=get_thumb('search', auto=True)))
-
- autoplay.show_option(item.channel, itemlist)
-
- return itemlist
-
-
-def menu_generos(item):
- logger.info()
-
- data = get_source(item.url)
- data = scrapertools.find_single_match(data, '
(.*?)
')
-
- itemlist = []
-
- patron = '
(.*?).*?'
- matches = re.compile(patron, re.DOTALL).findall(data)
-
- media_type = item.type
- for scrapedurl, scrapedtitle in matches:
- new_item = Item(channel=item.channel, title=scrapedtitle, url=scrapedurl,
- thumbnail=item.thumbnail, type=item.type, action="list_all")
- itemlist.append(new_item)
-
- return itemlist
-
-
-def list_all(item):
- logger.info()
- itemlist = []
-
- data = get_source(item.url)
- data = scrapertools.find_single_match(data, '
.*?