Fix streamlare, streamsb, toonitalia e modifiche interne

This commit is contained in:
marco
2022-10-23 20:42:43 +02:00
parent 3da43a418b
commit 8648014368
13 changed files with 55 additions and 54 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"active": true,
"find_videos": {
"ignore_urls": [],
"ignore_urls": ["https://deltabit.co/api"],
"patterns": [
{
"pattern": "https://deltabit.co/([A-z0-9]+)",
+4 -4
View File
@@ -23,17 +23,17 @@ def test_video_exists(page_url):
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
global data, response
logger.info("(page_url='%s')" % page_url)
video_urls = []
id = scrapertools.find_single_match(page_url, '/e/(\w+)')
post = {"id": id}
data = httptools.downloadpage("https://streamlare.com/api/video/stream/get", post=post).data.replace("\\","")
matches = scrapertools.find_multiple_matches(data, 'label":"([^"]+).*?file":"([^"]+)')
for res, media_url in matches:
media_url += "|User-Agent=%s" %(httptools.get_user_agent())
matches = scrapertools.find_multiple_matches(data, 'file":"([^"]+)')
for media_url in matches:
media_url += "|User-Agent=%s" % (httptools.get_user_agent())
video_urls.append(["MP4", media_url])
return video_urls
def get_filename(page_url):
from core import jsontools
file = jsontools.load(scrapertools.decodeHtmlentities(httptools.downloadpage(page_url).data.split(':file="')[1].split('"')[0]))
+1 -1
View File
@@ -4,7 +4,7 @@
"ignore_urls": [],
"patterns": [
{
"pattern": "(?:streamsb|sbembed|sbembed1|sbplay1|sbplay|pelistop|tubesb|playersb|embedsb|watchsb|streamas|sbfast|sbfull|viewsb|sbvideo|cloudemb|sbplay2|japopav|javplaya|ssbstream|sbthe|sbspeed)\\.\\w{2,5}/(?:embed-|d/|e/)?([A-z0-9]+)",
"pattern": "(?:streamsb|sbembed|sbembed1|sbplay1|sbplay|pelistop|tubesb|playersb|embedsb|watchsb|streamas|sbfast|sbfull|viewsb|sbvideo|cloudemb|sbplay2|japopav|javplaya|ssbstream|sbthe|sbspeed|sbanh)\\.\\w{2,5}/(?:embed-|d/|e/)?([A-z0-9]+)",
"url": "https://streamsb.net/d/\\1"
},
{
+1 -1
View File
@@ -22,7 +22,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
dl_url = 'https://{}/dl?op=download_orig&id={}&mode={}&hash={}'
host = scrapertools.get_domain_from_url(page_url)
sources = scrapertools.find_multiple_matches(data, r'download_video([^"]+)[^\d]+\d+x(\d+)')
sources = scrapertools.find_multiple_matches(data, r'download_video([^"]+)[^\d]+(\d+)p')
hash = scrapertools.find_single_match(data, r"file_id',\s'(\d+)")
if sources: