([^<]+)<\/h2>.*?([^<]+)<\/span>'
+ # if item.section == 'alpha':
+ # patron = '\d+.*?([^<]+).*?(\d{4}) '
+ # else:
+ patron = '.*?'
+ patron +='"Year">(\d{4})<.*?src="([^"]+)".*?"Title">([^"]+)
'
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,'')
if url_next_page:
itemlist.append(Item(channel=item.channel, title="Siguiente >>", url=url_next_page, action='list_all',
section=item.section))
diff --git a/plugin.video.alfa/channels/pelisplusco.py b/plugin.video.alfa/channels/pelisplusco.py
index 570a4082..4f199b29 100644
--- a/plugin.video.alfa/channels/pelisplusco.py
+++ b/plugin.video.alfa/channels/pelisplusco.py
@@ -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| ||\s{2,}', "", full_data) + season = str(item.infoLabels['season']) if int(season) <= 9: season = '0'+season data = scrapertools.find_single_match(full_data, 'Temporada %s(.*?)(?:down arrow|cuadre_comments)' % season) patron = '<\/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 ='(
- )'
matches = re.compile(patron_language, re.DOTALL).findall(data)
From f3419ee98bdfab317fff548887a1cd3654f1e518 Mon Sep 17 00:00:00 2001
From: Alfa-beto <30815244+Alfa-beto@users.noreply.github.com>
Date: Fri, 15 Mar 2019 11:15:43 -0300
Subject: [PATCH 2/2] Add files via upload
---
cuevana3.json | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
create mode 100644 cuevana3.json
diff --git a/cuevana3.json b/cuevana3.json
new file mode 100644
index 00000000..97c0d751
--- /dev/null
+++ b/cuevana3.json
@@ -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
+ }
+ ]
+}