diff --git a/plugin.video.alfa/channels/animeflv_me.json b/plugin.video.alfa/channels/animeflv_me.json index f8996058..d04c34ca 100755 --- a/plugin.video.alfa/channels/animeflv_me.json +++ b/plugin.video.alfa/channels/animeflv_me.json @@ -1,4 +1,4 @@ -{ +{ "id": "animeflv_me", "name": "Animeflv.ME", "active": true, @@ -8,6 +8,10 @@ "banner": "http://i.imgur.com/dTZwCPq.png", "version": 1, "changes": [ + { + "date": "03/09/2017", + "description": "Añadidos links de openload (No disponible de momento con la videoteca)" + }, { "date": "15/03/2017", "description": "limpieza código" diff --git a/plugin.video.alfa/channels/animeflv_me.py b/plugin.video.alfa/channels/animeflv_me.py index 5adaf6e9..976907d7 100755 --- a/plugin.video.alfa/channels/animeflv_me.py +++ b/plugin.video.alfa/channels/animeflv_me.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- import re import urlparse @@ -315,7 +315,6 @@ def episodios(item): itemlist.append(Item(channel=item.channel, title="Descargar todos los episodios", url=item.url, action="download_all_episodes", extra="episodios", show=item.show)) - return itemlist @@ -324,23 +323,48 @@ def findvideos(item): itemlist = [] - page_html = get_url_contents(item.url) - - regex_api = r'http://player\.animeflv\.me/[^\"]+' - iframe_url = scrapertools.find_single_match(page_html, regex_api) - - iframe_html = get_url_contents(iframe_url) - - regex_video_list = r'var part = \[([^\]]+)' - - videos_html = scrapertools.find_single_match(iframe_html, regex_video_list) - videos = re.findall('"([^"]+)"', videos_html, re.DOTALL) - qualities = ["360", "480", "720", "1080"] - - for quality_id, video_url in enumerate(videos): + if 'player' in item.url: + page_html = get_url_contents(item.url) + data = re.sub(r"\n|\r|\t|\s{2}| ", "", page_html) + patron_open='.+?