From e4b1139b847d06f37f6ed5c68202e6109d9c9198 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Thu, 5 Oct 2017 17:11:43 -0500
Subject: [PATCH 01/20] Actualizado
gamovideo: fix
---
plugin.video.alfa/servers/gamovideo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin.video.alfa/servers/gamovideo.py b/plugin.video.alfa/servers/gamovideo.py
index 5e378be7..715836ca 100755
--- a/plugin.video.alfa/servers/gamovideo.py
+++ b/plugin.video.alfa/servers/gamovideo.py
@@ -7,7 +7,7 @@ from core import scrapertools
from lib import jsunpack
from platformcode import logger
-headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0'}
+headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'}
def test_video_exists(page_url):
From 4c5315150fe990bb99ab6e9428a7aa7c0efde1be Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Thu, 5 Oct 2017 17:28:57 -0500
Subject: [PATCH 02/20] Update channelselector.py
---
plugin.video.alfa/channelselector.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin.video.alfa/channelselector.py b/plugin.video.alfa/channelselector.py
index 0c056767..b39534aa 100644
--- a/plugin.video.alfa/channelselector.py
+++ b/plugin.video.alfa/channelselector.py
@@ -202,7 +202,7 @@ def filterchannels(category, view="thumb_"):
def get_thumb(thumb_name, view="thumb_"):
- icon_pack_name = config.get_setting('icon_set')
+ icon_pack_name = config.get_setting('icon_set', default="default")
if icon_pack_name == "default":
resource_path = os.path.join(config.get_runtime_path(), "resources", "media", "themes")
else:
From 73ad5d6a046bd95195608c6bc850520572be69a6 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Thu, 5 Oct 2017 17:30:59 -0500
Subject: [PATCH 03/20] Update keymaptools.py
---
plugin.video.alfa/platformcode/keymaptools.py | 30 +++++--------------
1 file changed, 8 insertions(+), 22 deletions(-)
diff --git a/plugin.video.alfa/platformcode/keymaptools.py b/plugin.video.alfa/platformcode/keymaptools.py
index 5d6ecbf2..d65939ae 100644
--- a/plugin.video.alfa/platformcode/keymaptools.py
+++ b/plugin.video.alfa/platformcode/keymaptools.py
@@ -5,7 +5,7 @@ from threading import Timer
import xbmc
import xbmcaddon
import xbmcgui
-from core import filetools
+from channelselector import get_thumb
from platformcode import config
@@ -82,27 +82,13 @@ def set_key():
MAIN_MENU = {
- "news": {"label": "Novedades",
- "icon": filetools.join(config.get_runtime_path(), "resources", "media", "general", "default",
- "thumb_news.png"), "order": 0},
- "channels": {"label": "Canales",
- "icon": filetools.join(config.get_runtime_path(), "resources", "media", "general", "default",
- "thumb_channels.png"), "order": 1},
- "search": {"label": "Buscador",
- "icon": filetools.join(config.get_runtime_path(), "resources", "media", "general", "default",
- "thumb_search.png"), "order": 2},
- "favorites": {"label": "Favoritos",
- "icon": filetools.join(config.get_runtime_path(), "resources", "media", "general", "default",
- "thumb_favorites.png"), "order": 3},
- "videolibrary": {"label": "Videoteca",
- "icon": filetools.join(config.get_runtime_path(), "resources", "media", "general", "default",
- "thumb_videolibrary.png"), "order": 4},
- "downloads": {"label": "Descargas",
- "icon": filetools.join(config.get_runtime_path(), "resources", "media", "general", "default",
- "thumb_downloads.png"), "order": 5},
- "settings": {"label": "Configuración",
- "icon": filetools.join(config.get_runtime_path(), "resources", "media", "general", "default",
- "thumb_setting_0.png"), "order": 6},
+ "news": {"label": "Novedades", "icon": get_thumb("news.png"), "order": 0},
+ "channels": {"label": "Canales", "icon": get_thumb("channels.png"), "order": 1},
+ "search": {"label": "Buscador", "icon": get_thumb("search.png"), "order": 2},
+ "favorites": {"label": "Favoritos", "icon": get_thumb("favorites.png"), "order": 3},
+ "videolibrary": {"label": "Videoteca", "icon": get_thumb("videolibrary.png"), "order": 4},
+ "downloads": {"label": "Descargas", "icon": get_thumb("downloads.png"), "order": 5},
+ "settings": {"label": "Configuración", "icon": get_thumb("setting_0.png"), "order": 6}
}
From 5ac00398decd92a0fba12d51c6b07d39710a03a6 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Fri, 6 Oct 2017 10:03:55 -0500
Subject: [PATCH 04/20] Update peliculasrey.py
---
plugin.video.alfa/channels/peliculasrey.py | 161 ++++++---------------
1 file changed, 48 insertions(+), 113 deletions(-)
diff --git a/plugin.video.alfa/channels/peliculasrey.py b/plugin.video.alfa/channels/peliculasrey.py
index bcaa5abd..ebd7c362 100755
--- a/plugin.video.alfa/channels/peliculasrey.py
+++ b/plugin.video.alfa/channels/peliculasrey.py
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
import re
-import urlparse
from core import httptools
from core import scrapertools
from core import servertools
+from core import tmdb
from core.item import Item
from platformcode import logger, config
@@ -16,117 +16,54 @@ def mainlist(item):
itemlist = []
itemlist.append(Item(channel=item.channel, action="peliculas", title="Recientes", url=host))
- itemlist.append(Item(channel=item.channel, action="PorFecha", title="Año de Lanzamiento", url=host))
- itemlist.append(Item(channel=item.channel, action="Idiomas", title="Idiomas", url=host))
- itemlist.append(Item(channel=item.channel, action="calidades", title="Por calidad", url=host))
- itemlist.append(Item(channel=item.channel, action="generos", title="Por género", url=host))
+ itemlist.append(Item(channel = item.channel,
+ action = "filtro",
+ title = "Año de Lanzamiento",
+ category = "lanzamiento"
+ ))
+ itemlist.append(Item(channel = item.channel,
+ action = "filtro",
+ title = "Idiomas",
+ category = "idioma"
+ ))
+ itemlist.append(Item(channel = item.channel,
+ action = "filtro",
+ title = "Por calidad",
+ category = "calidades"
+ ))
+ itemlist.append(Item(channel = item.channel,
+ action = "filtro",
+ title = "Por género",
+ category = "generos"
+ ))
itemlist.append(Item(channel=item.channel, action="search", title="Buscar...", url=host))
return itemlist
-def PorFecha(item):
- logger.info()
-
- # Descarga la pagina
- data = httptools.downloadpage(item.url).data
- data = scrapertools.find_single_match(data, ' (.*?)'
-REGEX_URL = r'href="(http://animeflv\.me/Anime/[^"]+)">'
+REGEX_URL = r'href="(http://animeflv\.co/Anime/[^"]+)">'
REGEX_SERIE = r'%s.+?%s([^<]+?)
Date: Fri, 6 Oct 2017 10:42:05 -0500
Subject: [PATCH 05/20] Update peliscity.py
---
plugin.video.alfa/channels/peliscity.py | 35 +++++++++++--------------
1 file changed, 15 insertions(+), 20 deletions(-)
diff --git a/plugin.video.alfa/channels/peliscity.py b/plugin.video.alfa/channels/peliscity.py
index 78a924df..fa64ef07 100755
--- a/plugin.video.alfa/channels/peliscity.py
+++ b/plugin.video.alfa/channels/peliscity.py
@@ -5,6 +5,7 @@ import re
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
@@ -58,7 +59,7 @@ def porGenero(item):
patron = 'cat-item.*?href="([^"]+).*?>(.*?)<.*?span>([^<]+)'
- matches = re.compile(patron, re.DOTALL).findall(data)
+ matches = scrapertools.find_multiple_matches(data, patron)
for urlgen, genero, cantidad in matches:
cantidad = cantidad.replace(".", "")
@@ -103,7 +104,6 @@ def agregadas(item):
title = info[3]
plot = info[4]
year = info[5].strip()
-
itemlist.append(Item(channel=item.channel,
action='findvideos',
contentType = "movie",
@@ -116,15 +116,11 @@ def agregadas(item):
contentTitle = title,
url=url
))
- # Paginación
- try:
- next_page = scrapertools.find_single_match(data,'tima>.*?href=(.*?) >.*?href=(.*?) >
Date: Fri, 6 Oct 2017 10:55:58 -0500
Subject: [PATCH 06/20] Update cloudy.json
---
plugin.video.alfa/servers/cloudy.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugin.video.alfa/servers/cloudy.json b/plugin.video.alfa/servers/cloudy.json
index a0d0f523..cd539545 100755
--- a/plugin.video.alfa/servers/cloudy.json
+++ b/plugin.video.alfa/servers/cloudy.json
@@ -48,5 +48,6 @@
"visible": false
}
],
+ "thumbnail": "https://s1.postimg.org/9e6doboo2n/cloudy1.png",
"version": 1
}
From 09b6a4a2d6e3a420e050b0afead6c6da93009941 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Fri, 6 Oct 2017 11:03:39 -0500
Subject: [PATCH 07/20] Update yourupload.json
---
plugin.video.alfa/servers/yourupload.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugin.video.alfa/servers/yourupload.json b/plugin.video.alfa/servers/yourupload.json
index 401b7947..7e660487 100755
--- a/plugin.video.alfa/servers/yourupload.json
+++ b/plugin.video.alfa/servers/yourupload.json
@@ -58,5 +58,6 @@
"visible": false
}
],
+ "thumbnail" : "https://s1.postimg.org/4wje61el4f/yourupload1.png",
"version": 1
-}
\ No newline at end of file
+}
From 97eb675083c8e4fae6379a92d9b096ac4acd0668 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Fri, 6 Oct 2017 12:46:48 -0500
Subject: [PATCH 08/20] Update hdfull.py
---
plugin.video.alfa/channels/hdfull.py | 38 ++++------------------------
1 file changed, 5 insertions(+), 33 deletions(-)
diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py
index bc2d90af..3ab8b367 100644
--- a/plugin.video.alfa/channels/hdfull.py
+++ b/plugin.video.alfa/channels/hdfull.py
@@ -709,12 +709,11 @@ def findvideos(item):
itemlist.extend(enlaces)
## 2 = película
if type == "2" and item.category != "Cine":
- ## STRM para todos los enlaces de servidores disponibles
- ## Si no existe el archivo STRM de la peícula muestra el item ">> Añadir a la videoteca..."
- try:
- itemlist.extend(file_cine_library(item, url_targets))
- except:
- pass
+ if config.get_videolibrary_support():
+ itemlist.append(Item(channel=item.channel, title="Añadir a la videoteca", text_color="green",
+ action="add_pelicula_to_library", url=url_targets, thumbnail = item.thumbnail,
+ fulltitle = item.contentTitle
+ ))
return itemlist
@@ -736,33 +735,6 @@ def trailer(item):
return itemlist
-def file_cine_library(item, url_targets):
- import os
- from core import filetools
- videolibrarypath = os.path.join(config.get_videolibrary_path(), "CINE")
- archivo = item.show.strip()
- strmfile = archivo + ".strm"
- strmfilepath = filetools.join(videolibrarypath, strmfile)
-
- if not os.path.exists(strmfilepath):
- itemlist = []
- itemlist.append(Item(channel=item.channel, title=">> Añadir a la videoteca...", url=url_targets,
- action="add_file_cine_library", extra="episodios", show=archivo))
-
- return itemlist
-
-
-def add_file_cine_library(item):
- from core import videolibrarytools
- new_item = item.clone(title=item.show, action="play_from_library")
- videolibrarytools.save_movie(new_item)
- itemlist = []
- itemlist.append(Item(title='El vídeo ' + item.show + ' se ha añadido a la videoteca'))
- # xbmctools.renderItems(itemlist, "", "", "")
- platformtools.render_items(itemlist, "")
-
- return
-
def play(item):
if "###" in item.url:
From ac4d588d34000fcaf015db1cfc889b385b61facf Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Fri, 6 Oct 2017 17:59:35 -0500
Subject: [PATCH 09/20] Update hdfull.py
---
plugin.video.alfa/channels/hdfull.py | 47 +++++++++++-----------------
1 file changed, 19 insertions(+), 28 deletions(-)
diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py
index 3ab8b367..a3b2ccfa 100644
--- a/plugin.video.alfa/channels/hdfull.py
+++ b/plugin.video.alfa/channels/hdfull.py
@@ -676,37 +676,27 @@ def findvideos(item):
matches.append([match["lang"], match["quality"], url, embed])
- enlaces = []
for idioma, calidad, url, embed in matches:
- servername = scrapertools.find_single_match(url, "(?:http:|https:)//(?:www.|)([^.]+).")
- if servername == "streamin": servername = "streaminto"
- if servername == "waaw": servername = "netutv"
- if servername == "uploaded" or servername == "ul": servername = "uploadedto"
mostrar_server = True
- if config.get_setting("hidepremium") == True:
- mostrar_server = servertools.is_server_enabled(servername)
- if mostrar_server:
- option = "Ver"
- if re.search(r'return ([\'"]{2,}|\})', embed):
- option = "Descargar"
- calidad = unicode(calidad, "utf8").upper().encode("utf8")
- servername_c = unicode(servername, "utf8").capitalize().encode("utf8")
- title = option + ": " + servername_c + " (" + calidad + ")" + " (" + idioma + ")"
- thumbnail = item.thumbnail
- plot = item.title + "\n\n" + scrapertools.find_single_match(data,
- '
Date: Sat, 7 Oct 2017 08:48:04 -0500
Subject: [PATCH 10/20] Update streamplay.json
---
plugin.video.alfa/servers/streamplay.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugin.video.alfa/servers/streamplay.json b/plugin.video.alfa/servers/streamplay.json
index 2867247d..f04ab61a 100755
--- a/plugin.video.alfa/servers/streamplay.json
+++ b/plugin.video.alfa/servers/streamplay.json
@@ -68,5 +68,6 @@
"visible": false
}
],
+ "thumbnail": "https://s1.postimg.org/912d5vxmv3/streamplay1.png",
"version": 1
-}
\ No newline at end of file
+}
From ed2ea608cb0abb38c7f2ed2a5a5a521b883a4a11 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Sat, 7 Oct 2017 09:13:16 -0500
Subject: [PATCH 11/20] Update rapidgator.json
---
plugin.video.alfa/servers/rapidgator.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin.video.alfa/servers/rapidgator.json b/plugin.video.alfa/servers/rapidgator.json
index 880c7df2..5b2e5a89 100755
--- a/plugin.video.alfa/servers/rapidgator.json
+++ b/plugin.video.alfa/servers/rapidgator.json
@@ -10,7 +10,7 @@
"ignore_urls": [],
"patterns": [
{
- "pattern": "(rapidgator.net/file/.*?(?:\\.html))",
+ "pattern": "(rapidgator.net/file/\\w+(?:\\.html|))",
"url": "http://\\1"
}
]
@@ -50,4 +50,4 @@
],
"thumbnail": "server_rapidgator.png",
"version": 1
-}
\ No newline at end of file
+}
From ed90af9905d7e9b8b3766f2009be39af98467085 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Sat, 7 Oct 2017 09:28:31 -0500
Subject: [PATCH 12/20] Update hdfull.py
---
plugin.video.alfa/channels/hdfull.py | 23 ++---------------------
1 file changed, 2 insertions(+), 21 deletions(-)
diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py
index a3b2ccfa..76b6375f 100644
--- a/plugin.video.alfa/channels/hdfull.py
+++ b/plugin.video.alfa/channels/hdfull.py
@@ -634,7 +634,7 @@ def findvideos(item):
title_label = bbcode_kodi2html(" ( [COLOR green][B]Tráiler[/B][/COLOR] )")
itemlist.append(
- Item(channel=item.channel, action="trailer", title=title_label, fulltitle=title_label, url=url_targets,
+ Item(channel=item.channel, action="buscartrailer", title=title_label, fulltitle=title_label, url=url_targets,
thumbnail=item.thumbnail, show=item.show))
itemlist.append(Item(channel=item.channel, action="set_status", title=title, fulltitle=title, url=url_targets,
@@ -697,6 +697,7 @@ def findvideos(item):
contentTitle=item.contentTitle, contentType=item.contentType, tipo=option))
itemlist = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
+ itemlist.sort(key=lambda it: it.title, reverse=True)
## 2 = película
if type == "2" and item.category != "Cine":
if config.get_videolibrary_support():
@@ -708,23 +709,6 @@ def findvideos(item):
return itemlist
-def trailer(item):
- import youtube
- itemlist = []
- item.url = "https://www.googleapis.com/youtube/v3/search" + \
- "?q=" + item.show.replace(" ", "+") + "+trailer+HD+Español" \
- "®ionCode=ES" + \
- "&part=snippet" + \
- "&hl=es_ES" + \
- "&key=AIzaSyAd-YEOqZz9nXVzGtn3KWzYLbLaajhqIDA" + \
- "&type=video" + \
- "&maxResults=50" + \
- "&pageToken="
- itemlist.extend(youtube.fichas(item))
- # itemlist.pop(-1)
- return itemlist
-
-
def play(item):
if "###" in item.url:
@@ -747,9 +731,6 @@ def play(item):
return [item]
-## --------------------------------------------------------------------------------
-## --------------------------------------------------------------------------------
-
def agrupa_datos(data):
## Agrupa los datos
data = re.sub(r'\n|\r|\t| |
|', '', data)
From 6d950aedefa17a7ce107ae4e80e5e80de1237754 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Sat, 7 Oct 2017 12:21:21 -0500
Subject: [PATCH 13/20] Update pordede.json
---
plugin.video.alfa/channels/pordede.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin.video.alfa/channels/pordede.json b/plugin.video.alfa/channels/pordede.json
index a99cd21e..ad1e3a24 100755
--- a/plugin.video.alfa/channels/pordede.json
+++ b/plugin.video.alfa/channels/pordede.json
@@ -1,7 +1,7 @@
{
"id": "pordede",
"name": "Pordede",
- "active": true,
+ "active": false,
"adult": false,
"language": ["cast"],
"thumbnail": "pordede.png",
@@ -105,4 +105,4 @@
]
}
]
-}
\ No newline at end of file
+}
From 34011ecc776bdee0e08ae5382a99d0dd28e19f3f Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Sun, 8 Oct 2017 10:12:11 -0500
Subject: [PATCH 14/20] Update animeflv_me.py
---
plugin.video.alfa/channels/animeflv_me.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/plugin.video.alfa/channels/animeflv_me.py b/plugin.video.alfa/channels/animeflv_me.py
index 71b18b3b..b73b174f 100755
--- a/plugin.video.alfa/channels/animeflv_me.py
+++ b/plugin.video.alfa/channels/animeflv_me.py
@@ -21,12 +21,12 @@ CHANNEL_DEFAULT_HEADERS = [
REGEX_NEXT_PAGE = r"class='current'>\d+?
(.+?)
' % (REGEX_THUMB, REGEX_URL) -REGEX_EPISODE = r'href="(http://animeflv\.me/Ver/[^"]+?)">(?: