Migliorie cinemalibero e nuovo server HexUpload. Disattivato streamingita

This commit is contained in:
marco
2022-12-29 15:50:57 +01:00
parent 8982993835
commit f5a6384653
8 changed files with 150 additions and 60 deletions
+29
View File
@@ -0,0 +1,29 @@
from core import httptools, scrapertools
from platformcode import config
import base64
def test_video_exists(page_url):
global data
data = httptools.downloadpage(page_url).data
if 'File Not Found' in data:
return False, config.get_localized_string(70449) % "HexUpload"
else:
return True, ""
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
video_urls = []
global data
source = scrapertools.find_single_match(data, r'b4aa\.buy\("([^"]+)')
if source:
media_url = base64.b64decode(source).decode()
video_urls.append(["mp4", media_url])
return video_urls
def get_filename(page_url):
# from core.support import dbg;dbg()
title = httptools.downloadpage(page_url).data.split('<h2 style="word-break: break-all;">')[1].split('</h2>')[0]
return title