From 0caea466194e4160a6ebf8460bf6610774547cde Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Thu, 7 Dec 2017 14:58:39 -0500 Subject: [PATCH] Update yaske.py --- plugin.video.alfa/channels/yaske.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/channels/yaske.py b/plugin.video.alfa/channels/yaske.py index ab58b687..e4f320ee 100644 --- a/plugin.video.alfa/channels/yaske.py +++ b/plugin.video.alfa/channels/yaske.py @@ -184,13 +184,15 @@ def findvideos(item): for server, url, idioma, calidad in matches: if "drive" in server: server = "gvideo" - sublist.append(item.clone(channel=item.channel, action="play", url=url, folder=False, text_color=color1, quality=calidad.strip(), + sublist.append(item.clone(action="play", url=url, folder=False, text_color=color1, quality=calidad.strip(), language=idioma.strip(), + server = server, title="Ver en %s %s" %(server, calidad) )) data = httptools.downloadpage(url_m + "&page=%s" %page).data matches = scrapertools.find_multiple_matches(data, patron) page +=1 + sublist = sorted(sublist, key=lambda Item: Item.quality + Item.server) for k in ["Español", "Latino", "Ingles - Sub Español", "Ingles"]: lista_idioma = filter(lambda i: i.language == k, sublist) if lista_idioma: @@ -217,6 +219,6 @@ def play(item): ddd = httptools.downloadpage(item.url).data url = "http://olimpo.link" + scrapertools.find_single_match(ddd, '