Merge pull request #439 from pipcat/master
Pepecine, Powvideo, Streamplay
This commit is contained in:
@@ -15,7 +15,7 @@ from core.item import Item, InfoLabels
|
||||
from platformcode import config, logger
|
||||
from channels import filtertools
|
||||
|
||||
host = "https://pepecine.io"
|
||||
host = "https://pepecine.me" # "https://pepecine.io"
|
||||
|
||||
IDIOMAS = {'c': 'Castellano', 'i': 'Inglés', 'l': 'Latino', 's': 'VOSE', 'v': 'VO'}
|
||||
list_idiomas = IDIOMAS.values()
|
||||
@@ -30,34 +30,34 @@ def mainlist(item):
|
||||
|
||||
itemlist.append(item.clone(
|
||||
title = " Últimas películas",
|
||||
url = host + '/las-peliculas-online',
|
||||
url = host + '/mis-peliculas-online',
|
||||
action = 'list_latest',
|
||||
type = 'movie'))
|
||||
|
||||
itemlist.append(item.clone(title = " Películas por género",
|
||||
url = host + '/ver-pelicula',
|
||||
url = host + '/ver-la-pelicula',
|
||||
action = 'genero',
|
||||
type = 'movie'))
|
||||
|
||||
itemlist.append(item.clone(title = " Todas las películas",
|
||||
url = host + '/ver-pelicula',
|
||||
url = host + '/ver-la-pelicula',
|
||||
action = 'list_all',
|
||||
type = 'movie'))
|
||||
|
||||
itemlist.append(Item(title = "Series"))
|
||||
|
||||
itemlist.append(item.clone(title = " Últimos episodios",
|
||||
url = host + '/las-series-online',
|
||||
url = host + '/mis-series-online',
|
||||
action = 'list_latest',
|
||||
type = 'series'))
|
||||
|
||||
itemlist.append(item.clone(title = " Series por género",
|
||||
url = host + '/ver-serie-tv',
|
||||
url = host + '/ver-la-serie',
|
||||
action = 'genero',
|
||||
type = 'series'))
|
||||
|
||||
itemlist.append(item.clone(title = " Todas las series",
|
||||
url = host + '/ver-serie-tv',
|
||||
url = host + '/ver-la-serie',
|
||||
action ='list_all',
|
||||
type = 'series'))
|
||||
|
||||
@@ -251,11 +251,11 @@ def list_all(item):
|
||||
new_item.contentTitle = element['title']
|
||||
new_item.fulltitle = element['title']
|
||||
if new_item.extra != "links_encoded":
|
||||
new_item.url = host + "/ver-pelicula/" + str(element['id'])
|
||||
new_item.url = host + "/ver-la-pelicula/" + str(element['id'])
|
||||
|
||||
elif item.type == 'series':
|
||||
new_item.action = 'seasons'
|
||||
new_item.url = host + "/ver-serie-tv/" + str(element['id'])
|
||||
new_item.url = host + "/ver-la-serie/" + str(element['id'])
|
||||
new_item.show = element['title']
|
||||
new_item.contentType = 'tvshow'
|
||||
new_item.contentSerieName = element['title']
|
||||
@@ -334,8 +334,8 @@ def findvideos(item):
|
||||
|
||||
if item.extra != "links_encoded":
|
||||
data = httptools.downloadpage(item.url).data
|
||||
patron = "renderTab\.bind.*?'([^']+)"
|
||||
patron += '.*?<img data-bind="[^"]+"><b>([^<]*)'
|
||||
patron = "renderTab\.bind[^']+'([^']+)"
|
||||
patron += '.*?<b[^>]*>([^<]*)<img src='
|
||||
patron += '.*?<td [^>]*>([^<]*)'
|
||||
patron += '.*?<td [^>]*>([^<]*)'
|
||||
|
||||
|
||||
1
plugin.video.alfa/lib/alfaresolver.py
Normal file
1
plugin.video.alfa/lib/alfaresolver.py
Normal file
File diff suppressed because one or more lines are too long
@@ -35,7 +35,10 @@ def encode_log(message=""):
|
||||
def get_caller(message=None):
|
||||
module = inspect.getmodule(inspect.currentframe().f_back.f_back)
|
||||
|
||||
module = module.__name__
|
||||
if module == None:
|
||||
module = "None"
|
||||
else:
|
||||
module = module.__name__
|
||||
|
||||
function = inspect.currentframe().f_back.f_back.f_code.co_name
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<setting id="player_mode" type="enum" values="Direct|SetResolvedUrl|Built-In|Download and Play" label="30044" default="0"/>
|
||||
<setting id="default_action" type="enum" lvalues="30006|30007|30008" label="30005" default="0"/>
|
||||
<setting id="thumbnail_type" type="enum" lvalues="30011|30012|30200" label="30010" default="2"/>
|
||||
<setting id="channel_language" type="labelenum" values="all|cast|lat|ita" label="30019" default="all"/>
|
||||
<setting id="channel_language" type="labelenum" values="all|cast|lat" label="30019" default="all"/>
|
||||
<setting id="trakt_sync" type="bool" label="70109" default="false"/>
|
||||
<setting id="forceview" type="bool" label="30043" default="false"/>
|
||||
<setting id="faster_item_serialization" type="bool" label="30300" default="false"/>
|
||||
|
||||
@@ -33,12 +33,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
|
||||
url = scrapertools.find_single_match(unpacked, "(?:src):\\\\'([^\\\\]+.mp4)\\\\'")
|
||||
|
||||
itemlist.append([".mp4" + " [powvideo]", decode_video_url(url)])
|
||||
from lib import alfaresolver
|
||||
itemlist.append([".mp4" + " [powvideo]", alfaresolver.decode_video_url(url, data)])
|
||||
|
||||
itemlist.sort(key=lambda x: x[0], reverse=True)
|
||||
return itemlist
|
||||
|
||||
def decode_video_url(url):
|
||||
tria = re.compile('[0-9a-z]{40,}', re.IGNORECASE).findall(url)[0]
|
||||
gira = tria[::-1]
|
||||
x = gira[1:]
|
||||
return re.sub(tria, x, url)
|
||||
|
||||
@@ -38,13 +38,10 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
unpacked = jsunpack.unpack(packed)
|
||||
|
||||
url = scrapertools.find_single_match(unpacked, '(http[^,]+\.mp4)')
|
||||
itemlist.append([".mp4" + " [streamplay]", decode_video_url(url)])
|
||||
|
||||
from lib import alfaresolver
|
||||
itemlist.append([".mp4" + " [streamplay]", alfaresolver.decode_video_url(url, data)])
|
||||
|
||||
itemlist.sort(key=lambda x: x[0], reverse=True)
|
||||
|
||||
return itemlist
|
||||
|
||||
def decode_video_url(url):
|
||||
tria = re.compile('[0-9a-z]{40,}', re.IGNORECASE).findall(url)[0]
|
||||
gira = tria[::-1]
|
||||
x = gira[:4] + gira[6:]
|
||||
return re.sub(tria, x, url)
|
||||
|
||||
Reference in New Issue
Block a user