Aggiunto server MaxStream
This commit is contained in:
@@ -94,7 +94,7 @@ def peliculas(item):
|
||||
# esclusione degli articoli 'di servizio'
|
||||
curYear = datetime.date.today().year
|
||||
blacklist = ['BENVENUTI', 'Richieste Serie TV', 'CB01.UNO ▶ TROVA L’INDIRIZZO UFFICIALE ',
|
||||
'Aggiornamento Quotidiano Serie TV',
|
||||
'Aggiornamento Quotidiano Serie TV', 'AVVISO!!!',
|
||||
'Openload: la situazione. Benvenuto Verystream', 'Openload: lo volete ancora?',
|
||||
'OSCAR ' + str(curYear) + ' ▶ VOTA IL TUO FILM PREFERITO! 🎬',
|
||||
'Auguri di Buon Natale e Felice Anno Nuovo! – ' + str(curYear) + '!']
|
||||
|
||||
@@ -45,7 +45,7 @@ class UnshortenIt(object):
|
||||
# for services that only include real link inside iframe
|
||||
_simple_iframe_regex = r'cryptmango|xshield\.net|vcrypt\.club'
|
||||
# for services that only do redirects
|
||||
_simple_redirect = r'streamcrypt\.net/[^/]+'
|
||||
_simple_redirect = r'streamcrypt\.net/[^/]+|uprot\.net'
|
||||
|
||||
listRegex = [_adfly_regex, _linkbucks_regex, _adfocus_regex, _lnxlu_regex, _shst_regex, _hrefli_regex, _anonymz_regex,
|
||||
_shrink_service_regex, _rapidcrypt_regex, _simple_iframe_regex, _linkup_regex, _linkhub_regex,
|
||||
|
||||
29
servers/maxstream.json
Normal file
29
servers/maxstream.json
Normal 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
servers/maxstream.py
Normal file
22
servers/maxstream.py
Normal 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')
|
||||
Reference in New Issue
Block a user