Aggiunto server MaxStream

This commit is contained in:
mac12m99
2021-06-20 18:20:40 +02:00
parent eafb27d99c
commit 6524a3af02
4 changed files with 53 additions and 2 deletions
+29
View File
@@ -0,0 +1,29 @@
{
"active": true,
"find_videos": {
"ignore_urls": [],
"patterns": [
{
"pattern": "https?://maxstream.video/(?:e/)?([a-z0-9]+)",
"url": "https://maxstream.video/\\1"
},
{
"pattern": "https?://maxstream.video/embed-([a-z0-9]+).html",
"url": "https://maxstream.video/\\1"
}
]
},
"free": true,
"id": "maxstream",
"name": "MaxStream",
"settings": [
{
"default": false,
"enabled": true,
"id": "black_list",
"label": "@70708",
"type": "bool",
"visible": true
}
]
}
+22
View File
@@ -0,0 +1,22 @@
from core import httptools
from core import scrapertools, support
from lib import jsunpack
from platformcode import logger, config
def test_video_exists(page_url):
logger.debug("(page_url='%s')" % page_url)
global data
data = httptools.downloadpage(page_url).data
if "File Not Found" in data or "File was deleted" in data:
return False, config.get_localized_string(70449) % "MaxStream"
return True, ""
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.debug("url=" + page_url)
global data
packed = scrapertools.find_single_match(data, r'(eval.*?)</script>')
unpacked = jsunpack.unpack(packed)
return support.get_jwplayer_mediaurl(unpacked, 'MaxStream')