Nuovo server: dropload e fix puntate sfasate eurostreaming_actor
This commit is contained in:
@@ -48,7 +48,7 @@ def episodios(item):
|
||||
data = support.match(support.match(data, patron=r'<h2 style="text-align: center;"><a href="([^"]+)">').match, headers=headers).data
|
||||
|
||||
patronBlock = r'tab-content(?P<block>.*?)serie-player'
|
||||
patron = r'data-link="(?P<url>http.*?)".*?data.num..(?P<season>\d+)x(?P<episode>\d+)" data-title="(?P<title>[^"]+)'
|
||||
patron = r'data.num..(?P<season>\d+)x(?P<episode>\d+)" data-title="(?P<title>[^"]+).*?data-link="(?P<url>http.*?)</li>'
|
||||
|
||||
return locals()
|
||||
|
||||
|
||||
@@ -1487,7 +1487,7 @@ def get_jwplayer_mediaurl(data, srvName, onlyHttp=False, dataIsBlock=False, hls=
|
||||
for url, quality in sources:
|
||||
quality = 'auto' if not quality else quality
|
||||
if url.split('.')[-1] != 'mpd':
|
||||
_type = url.split('.')[-1].split('?')[0]
|
||||
_type = url.split('?')[0].split('.')[-1]
|
||||
if _type == 'm3u8' and hls:
|
||||
_type = 'hls'
|
||||
video_urls.append([_type + ' [' + quality + '] [' + srvName + ']', url.replace(' ', '%20') if not onlyHttp else url.replace('https://', 'http://')])
|
||||
|
||||
29
servers/dropload.json
Normal file
29
servers/dropload.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"active": true,
|
||||
"find_videos": {
|
||||
"patterns": [
|
||||
{
|
||||
"pattern": "https?://dropload.io/(\\w{12})",
|
||||
"url": "https://dropload.io/\\1"
|
||||
},
|
||||
{
|
||||
"pattern": "https?://dropload.io/embed-(\\w{12}).html",
|
||||
"url": "https://dropload.io/\\1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"free": true,
|
||||
"id": "dropload",
|
||||
"name": "Dropload",
|
||||
"settings": [
|
||||
{
|
||||
"default": false,
|
||||
"enabled": true,
|
||||
"id": "black_list",
|
||||
"label": "$ADDON[plugin.video.kod 70708]",
|
||||
"type": "bool",
|
||||
"visible": true
|
||||
}
|
||||
],
|
||||
"cloudflare": true
|
||||
}
|
||||
39
servers/dropload.py
Normal file
39
servers/dropload.py
Normal file
@@ -0,0 +1,39 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
try:
|
||||
import urllib.parse as urllib
|
||||
except ImportError:
|
||||
import urllib
|
||||
|
||||
from core import httptools, support
|
||||
from core import scrapertools
|
||||
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:
|
||||
return False, config.get_localized_string(70449) % "Dropload"
|
||||
return True, ""
|
||||
|
||||
|
||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||
logger.debug(" url=" + page_url)
|
||||
video_urls = []
|
||||
|
||||
global data
|
||||
vres = scrapertools.find_multiple_matches(data, 'nowrap[^>]+>([^,]+)')
|
||||
if not vres: vres = scrapertools.find_multiple_matches(data, '<td>(\d+x\d+)')
|
||||
|
||||
data_pack = scrapertools.find_single_match(data, "</div>\n\s*<script[^>]+>(eval.function.p,a,c,k,e,.*?)\s*</script>")
|
||||
if data_pack != "":
|
||||
from lib import jsunpack
|
||||
data = jsunpack.unpack(data_pack)
|
||||
|
||||
_headers = urllib.urlencode(httptools.default_headers)
|
||||
video_urls = support.get_jwplayer_mediaurl(data, 'dropload')
|
||||
|
||||
return sorted(video_urls, key=lambda x: int(x[0].split('x')[0])) if vres else video_urls
|
||||
Reference in New Issue
Block a user