Aggiunto server EvoLoad (#339)
* Aggiunto Server EvoLoad Co-authored-by: Alex Pettiti <alex.pettiti@axterisko.it> Co-authored-by: mac12m99 <10120390+mac12m99@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"active": true,
|
||||||
|
"find_videos": {
|
||||||
|
"ignore_urls": [],
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"pattern": "https?://evoload.io/v/([a-zA-Z0-9]+)",
|
||||||
|
"url": "https://evoload.io/e/\\1?h=https://evoload.io/v/\\1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"free": true,
|
||||||
|
"id": "evoload",
|
||||||
|
"name": "EvoLoad",
|
||||||
|
"settings": [
|
||||||
|
{
|
||||||
|
"default": false,
|
||||||
|
"enabled": true,
|
||||||
|
"id": "black_list",
|
||||||
|
"label": "@70708",
|
||||||
|
"type": "bool",
|
||||||
|
"visible": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# --------------------------------------------------------
|
||||||
|
|
||||||
|
# Conector EvoLoad By 4l3x87
|
||||||
|
# --------------------------------------------------------
|
||||||
|
from core import httptools, jsontools
|
||||||
|
from core import scrapertools
|
||||||
|
from platformcode import config
|
||||||
|
from platformcode import logger
|
||||||
|
|
||||||
|
|
||||||
|
def test_video_exists(page_url):
|
||||||
|
logger.debug("(page_url='%s')" % page_url)
|
||||||
|
json = get_json(page_url)
|
||||||
|
if not json or ('xstatus' in json and json['xstatus'] == 'del'):
|
||||||
|
return False, config.get_localized_string(70449) % "EvoLoad"
|
||||||
|
return True, ""
|
||||||
|
|
||||||
|
|
||||||
|
def get_json(page_url):
|
||||||
|
csrv_pass = '7dczpuzsmak'
|
||||||
|
code = page_url[-14:]
|
||||||
|
csrv_token = httptools.downloadpage('https://csrv.evosrv.com/captcha?m412548', headers={"Referer": page_url}).data
|
||||||
|
post = 'code=' + code + '&token=&csrv_token=' + csrv_token + '&pass=' + csrv_pass + '&reff=' + page_url
|
||||||
|
logger.debug("post=" + post)
|
||||||
|
response = httptools.downloadpage("https://evoload.io/SecurePlayer", post=post, headers=[])
|
||||||
|
data = jsontools.load(response.data)
|
||||||
|
if data:
|
||||||
|
return data
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||||
|
logger.debug("url=" + page_url)
|
||||||
|
video_urls = []
|
||||||
|
|
||||||
|
json = get_json(page_url)
|
||||||
|
label = url = ''
|
||||||
|
|
||||||
|
if json:
|
||||||
|
if 'name' in json:
|
||||||
|
label = json['name']
|
||||||
|
if 'stream' in json and 'src' in json['stream']:
|
||||||
|
url = json['stream']['src']
|
||||||
|
|
||||||
|
if url:
|
||||||
|
video_urls.append(['%s [evoload]' % label, url])
|
||||||
|
return video_urls
|
||||||
Reference in New Issue
Block a user