Fix VVVVID, streamsb e nuovo server filemoon. Miglior passaggio info a trakt (se attivo)

This commit is contained in:
marco
2023-03-02 20:47:05 +01:00
parent c1ce1abcae
commit 14ee433eb5
6 changed files with 59 additions and 4 deletions
+24
View File
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from core import httptools, support
from lib import jsunpack
from platformcode import config, logger
def test_video_exists(page_url):
logger.debug("(page_url='%s')" % page_url)
global data
data = httptools.downloadpage(page_url, cookies=False).data
if '<h1>Page not found</h1>' in data:
return False, config.get_localized_string(70449) % "filemoon"
return True, ""
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
global data
packed = support.match(data, patron=r'(eval\(function\(p.*?)</').match
if packed:
data = jsunpack.unpack(packed).replace("\\", "")
video_urls = support.get_jwplayer_mediaurl(data, 'filemoon')
return video_urls