aggiunto server Streamtape

This commit is contained in:
marco
2020-05-17 11:34:09 +02:00
parent 96f9b9d3d5
commit 929e2ec42d
3 changed files with 72 additions and 1 deletions

28
servers/streamtape.py Normal file
View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# --------------------------------------------------------
# Conector Mixdrop By Alfa development Group
# --------------------------------------------------------
from core import httptools
from core import scrapertools
from platformcode import logger, config
def test_video_exists(page_url):
logger.info("(page_url='%s')" % page_url)
global data
data = httptools.downloadpage(page_url).data
if "Video not found" in data:
return False, config.get_localized_string(70449) % "Streamtape"
return True, ""
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.info("url=" + page_url)
video_urls = []
global data
media_url = 'https://' + scrapertools.find_single_match(data, 'id="videolink"[^>]+>\n?\s*//(.*?)<') + '&stream=1'
video_urls.append([".mp4 [Streamtape]", media_url])
return video_urls