69
cuevana3.json
Normal file
69
cuevana3.json
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"id": "cuevana3",
|
||||
"name": "Cuevana 3",
|
||||
"active": true,
|
||||
"adult": false,
|
||||
"language": ["lat", "cast"],
|
||||
"thumbnail": "https://www.cuevana3.co/wp-content/themes/cuevana3/public/img/cnt/cuevana3.png",
|
||||
"banner": "",
|
||||
"version": 1,
|
||||
"categories": [
|
||||
"movie"
|
||||
],
|
||||
"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",
|
||||
"CAST",
|
||||
"VOSE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"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_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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -31,23 +31,29 @@ def mainlist(item):
|
||||
|
||||
itemlist = list()
|
||||
|
||||
itemlist.append(Item(channel=item.channel, title="Ultimas", action="list_all", url=host,
|
||||
thumbnail=get_thumb('last', auto=True)))
|
||||
itemlist.append(Item(channel=item.channel, title="Todas", action="list_all", url=host+'peliculas',
|
||||
thumbnail=get_thumb('all', auto=True)))
|
||||
itemlist.append(Item(channel=item.channel, title="Estrenos", action="list_all", url=host+'estrenos',
|
||||
thumbnail=get_thumb('premieres', auto=True)))
|
||||
itemlist.append(Item(channel=item.channel, title="Mas vistas", action="list_all", url=host+'peliculas-mas-vistas',
|
||||
thumbnail=get_thumb('more watched', auto=True)))
|
||||
itemlist.append(Item(channel=item.channel, title="Mas votadas", action="list_all", url=host+'peliculas-mas-valoradas',
|
||||
thumbnail=get_thumb('more voted', auto=True)))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, title="Generos", action="section", section='genre',
|
||||
thumbnail=get_thumb('genres', auto=True)))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, title="Castellano", action="list_all", url= host+'espanol',
|
||||
thumbnail=get_thumb('audio', auto=True)))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, title="Latino", action="list_all", url=host + 'latino',
|
||||
thumbnail=get_thumb('audio', auto=True)))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, title="VOSE", action="list_all", url=host + 'subtitulado',
|
||||
thumbnail=get_thumb('audio', auto=True)))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, title="Alfabetico", action="section", section='alpha',
|
||||
thumbnail=get_thumb('alphabet', auto=True)))
|
||||
# itemlist.append(Item(channel=item.channel, title="Castellano", action="list_all", url= host+'espanol',
|
||||
# thumbnail=get_thumb('audio', auto=True)))
|
||||
#
|
||||
# itemlist.append(Item(channel=item.channel, title="Latino", action="list_all", url=host + 'latino',
|
||||
# thumbnail=get_thumb('audio', auto=True)))
|
||||
#
|
||||
# itemlist.append(Item(channel=item.channel, title="VOSE", action="list_all", url=host + 'subtitulado',
|
||||
# thumbnail=get_thumb('audio', auto=True)))
|
||||
#
|
||||
# itemlist.append(Item(channel=item.channel, title="Alfabetico", action="section", section='alpha',
|
||||
# thumbnail=get_thumb('alphabet', auto=True)))
|
||||
|
||||
itemlist.append(Item(channel=item.channel, title="Buscar", action="search", url=host+'?s=',
|
||||
thumbnail=get_thumb('search', auto=True)))
|
||||
@@ -69,17 +75,16 @@ def list_all(item):
|
||||
itemlist = []
|
||||
|
||||
try:
|
||||
data = get_source(item.url)
|
||||
if item.section == 'alpha':
|
||||
patron = '<span class="Num">\d+.*?<a href="([^"]+)" class.*?'
|
||||
patron += 'src="([^"]+)" class.*?<strong>([^<]+)</strong>.*?<td>(\d{4})</td>'
|
||||
else:
|
||||
patron = '<article id="post-\d+".*?<a href="([^"]+)">.*?'
|
||||
patron += 'src="([^"]+)".*?<h2 class="Title">([^<]+)<\/h2>.*?<span class="Year">([^<]+)<\/span>'
|
||||
# if item.section == 'alpha':
|
||||
# patron = '<span class="Num">\d+.*?<a href="([^"]+)" class.*?'
|
||||
# patron += 'src="([^"]+)" class.*?<strong>([^<]+)</strong>.*?<td>(\d{4})</td>'
|
||||
# else:
|
||||
patron = '<article class="TPost C post-\d+.*?<a href="([^"]+)">.*?'
|
||||
patron +='"Year">(\d{4})<.*?src="([^"]+)".*?"Title">([^"]+)</h2>'
|
||||
data = get_source(item.url)
|
||||
matches = re.compile(patron, re.DOTALL).findall(data)
|
||||
|
||||
for scrapedurl, scrapedthumbnail, scrapedtitle, year in matches:
|
||||
for scrapedurl, year, scrapedthumbnail, scrapedtitle in matches:
|
||||
|
||||
url = scrapedurl
|
||||
if "|" in scrapedtitle:
|
||||
@@ -103,7 +108,7 @@ def list_all(item):
|
||||
|
||||
# Paginación
|
||||
|
||||
url_next_page = scrapertools.find_single_match(data,'<a class="next.*?" rel="next" href="([^"]+)"')
|
||||
url_next_page = scrapertools.find_single_match(data,'<a href="([^"]+)" class="next page-numbers">')
|
||||
if url_next_page:
|
||||
itemlist.append(Item(channel=item.channel, title="Siguiente >>", url=url_next_page, action='list_all',
|
||||
section=item.section))
|
||||
|
||||
@@ -324,14 +324,15 @@ def season_episodes(item):
|
||||
logger.info()
|
||||
itemlist = []
|
||||
|
||||
full_data = httptools.downloadpage(item.url).data
|
||||
full_data = httptools.downloadpage(item.url+'/').data
|
||||
full_data = re.sub(r'\n|\r|\t| |<br>|\s{2,}', "", full_data)
|
||||
|
||||
season = str(item.infoLabels['season'])
|
||||
if int(season) <= 9:
|
||||
season = '0'+season
|
||||
data = scrapertools.find_single_match(full_data, '</i>Temporada %s</div>(.*?)(?:down arrow|cuadre_comments)' % season)
|
||||
patron = '<a href="([^"]+)" title=".*?i-play"><\/i> (.*?)<\/a>'
|
||||
matches = matches = re.compile(patron, re.DOTALL).findall(data)
|
||||
matches = re.compile(patron, re.DOTALL).findall(data)
|
||||
infoLabels = item.infoLabels
|
||||
for url, episode in matches:
|
||||
episodenumber = re.sub('C.* ','',episode)
|
||||
@@ -354,7 +355,7 @@ def get_links_by_language(item, data):
|
||||
video_list = []
|
||||
|
||||
language = scrapertools.find_single_match(data, 'ul id="level\d_([^"]+)"\s*class=')
|
||||
patron = 'data-source="([^"]+)"data-quality="([^"]+)"data-srt="([^"]+)"'
|
||||
patron = 'data-source="([^"]+)"data-quality="([^"]+)"data-srt="([^"]+)?"'
|
||||
matches = re.compile(patron, re.DOTALL).findall(data)
|
||||
if language in IDIOMAS:
|
||||
language = IDIOMAS[language]
|
||||
@@ -399,7 +400,6 @@ def findvideos(item):
|
||||
new_url = base_url.replace('/serie/', '/player/serie/')
|
||||
new_url += '|%s|%s/' % (item.contentSeason, item.contentEpisodeNumber)
|
||||
data = get_source(new_url, referer=item.url)
|
||||
|
||||
patron_language ='(<ul id="level\d_.*?"*class=.*?ul>)'
|
||||
matches = re.compile(patron_language, re.DOTALL).findall(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user