diff --git a/plugin.video.alfa/channels/pelisfox.py b/plugin.video.alfa/channels/pelisfox.py
old mode 100755
new mode 100644
index 854bf5c9..a76d7e3b
--- a/plugin.video.alfa/channels/pelisfox.py
+++ b/plugin.video.alfa/channels/pelisfox.py
@@ -9,6 +9,8 @@ from core import logger
from core import scrapertools
from core import tmdb
from core.item import Item
+from core import servertools
+
tgenero = {"Drama": "https://s16.postimg.org/94sia332d/drama.png",
u"Accción": "https://s3.postimg.org/y6o9puflv/accion.png",
@@ -225,6 +227,7 @@ def findvideos(item):
logger.info()
itemlist = []
templist = []
+ video_list = []
data = httptools.downloadpage(item.url).data
data = re.sub(r'"|\n|\r|\t| |
|\s{2,}', "", data)
patron = '
|\s{2,}', "", data)
id = scrapertools.find_single_match(data, 'var _SOURCE =.*?source:(.*?),')
@@ -247,24 +250,26 @@ def findvideos(item):
sub = sub.replace('\\', '')
else:
sub = ''
- new_url = 'http://iplay.one/api/embed?id=%s&token=8908d9f846&%s' % (id, sub)
+ new_url = 'https://onevideo.tv/api/player?key=90503e3de26d45e455b55e9dc54f015b3d1d4150&link' \
+ '=%s&srt=%s' % (id, sub)
data = httptools.downloadpage(new_url).data
- patron = 'file":"(.*?)","label":"(.*?)","type":".*?"}'
- matches = matches = re.compile(patron, re.DOTALL).findall(data)
+ url = scrapertools.find_single_match (data, ' 0:
- url_next_page = matches_next_page[0]
-
- for scrapedurl, scrapedthumbnail, idiomas, year, scrapedtitle in matches:
- patronidiomas = "
'
- data = scrapertoolsV2.get_match(data, patron)
-
- # Extrae las entradas
- patron = ""
- matches = re.compile(patron, re.DOTALL).findall(data)
-
- itemlist = []
- for scrapedvalue, scrapedtitle in matches:
- thumbnail = ""
-
- if item.extra == 'genre':
- if scrapedtitle.strip() in ['Documental', 'Short', 'News']:
- continue
-
- url = HOST + "/search/?q=&genre%5B%5D=" + scrapedvalue
- filename = scrapedtitle.lower().replace(' ', '%20')
- if filename == "ciencia%20ficción":
- filename = "ciencia%20ficcion"
- thumbnail = "https://raw.githubusercontent.com/master-1970/resources/master/images/genres/4/verdes/%s.png" \
- % filename
-
- elif item.extra == 'year':
- url = HOST + "/search/?q=&year=" + scrapedvalue
- thumbnail = item.thumbnail
- else:
- # http://www.yaske.ro/search/?q=&quality%5B%5D=c9
- # http://www.yaske.ro/search/?q=&audio%5B%5D=es
- url = HOST + "/search/?q=&" + item.extra + "%5B%5D=" + scrapedvalue
- thumbnail = item.thumbnail
-
- itemlist.append(Item(channel=item.channel, action="peliculas", title=scrapedtitle, url=url, text_color=color1,
- thumbnail=thumbnail, contentType='movie', folder=True, viewmode="movie_with_plot"))
-
- if item.extra in ['genre', 'audio', 'year']:
- return sorted(itemlist, key=lambda i: i.title.lower(), reverse=item.extra == 'year')
- else:
- return itemlist
-
-
-def findvideos(item):
- logger.info()
- itemlist = list()
- sublist = list()
-
- # Descarga la página
- data = httptools.downloadpage(item.url).data
-
- if not item.plot:
- item.plot = scrapertoolsV2.find_single_match(data, '>Sinopsis ([^<]+)')
- item.plot = scrapertoolsV2.decodeHtmlentities(item.plot)
-
- patron = ' 0:
+ url_next_page = matches_next_page[0]
+
+ for scrapedurl, scrapedthumbnail, idiomas, year, scrapedtitle in matches:
+ patronidiomas = "
'
+ data = scrapertoolsV2.get_match(data, patron)
+
+ # Extrae las entradas
+ patron = ""
+ matches = re.compile(patron, re.DOTALL).findall(data)
+
+ itemlist = []
+ for scrapedvalue, scrapedtitle in matches:
+ thumbnail = ""
+
+ if item.extra == 'genre':
+ if scrapedtitle.strip() in ['Documental', 'Short', 'News']:
+ continue
+
+ url = HOST + "/search/?q=&genre%5B%5D=" + scrapedvalue
+ filename = scrapedtitle.lower().replace(' ', '%20')
+ if filename == "ciencia%20ficción":
+ filename = "ciencia%20ficcion"
+ thumbnail = "https://raw.githubusercontent.com/master-1970/resources/master/images/genres/4/verdes/%s.png" \
+ % filename
+
+ elif item.extra == 'year':
+ url = HOST + "/search/?q=&year=" + scrapedvalue
+ thumbnail = item.thumbnail
+ else:
+ # http://www.yaske.ro/search/?q=&quality%5B%5D=c9
+ # http://www.yaske.ro/search/?q=&audio%5B%5D=es
+ url = HOST + "/search/?q=&" + item.extra + "%5B%5D=" + scrapedvalue
+ thumbnail = item.thumbnail
+
+ itemlist.append(Item(channel=item.channel, action="peliculas", title=scrapedtitle, url=url, text_color=color1,
+ thumbnail=thumbnail, contentType='movie', folder=True, viewmode="movie_with_plot"))
+
+ if item.extra in ['genre', 'audio', 'year']:
+ return sorted(itemlist, key=lambda i: i.title.lower(), reverse=item.extra == 'year')
+ else:
+ return itemlist
+
+
+def findvideos(item):
+ logger.info()
+ itemlist = list()
+ sublist = list()
+
+ # Descarga la página
+ data = httptools.downloadpage(item.url).data
+
+ if not item.plot:
+ item.plot = scrapertoolsV2.find_single_match(data, '>Sinopsis ([^<]+)')
+ item.plot = scrapertoolsV2.decodeHtmlentities(item.plot)
+
+ patron = '