Fix parziale cinemalibero (SerieTV)
This commit is contained in:
@@ -46,3 +46,11 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
video_urls.append(["%s [Mixdrop]" % ext, media_url])
|
||||
|
||||
return video_urls
|
||||
|
||||
|
||||
def get_filename(page_url):
|
||||
title = httptools.downloadpage(page_url.replace('/e/', '/f/')).data.split('<title>')[1].split('</title>')[0]
|
||||
prefix = 'MixDrop - Watch '
|
||||
if title.startswith(prefix):
|
||||
return title[len(prefix):]
|
||||
return ""
|
||||
|
||||
@@ -26,3 +26,9 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
media_url = data["result"]["Original"]["src"]
|
||||
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]))
|
||||
return file['name']
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"ignore_urls": [],
|
||||
"patterns": [
|
||||
{
|
||||
"pattern": "(?:streamsb|sbembed|sbembed1|sbplay1|sbplay|pelistop|tubesb|playersb|embedsb).\\w{2,4}/(?:embed-|d/|e/)?([A-z0-9]+)",
|
||||
"pattern": "(?:streamsb|sbembed|sbembed1|sbplay1|sbplay|pelistop|tubesb|playersb|embedsb|watchsb).\\w{2,4}/(?:embed-|d/|e/)?([A-z0-9]+)",
|
||||
"url": "https://streamsb.net/\\1"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -34,3 +34,11 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
if media_url:
|
||||
video_urls.append([s[0], media_url])
|
||||
return video_urls
|
||||
|
||||
|
||||
def get_filename(page_url):
|
||||
title = httptools.downloadpage(page_url).data.split('<title>')[1].split('</title>')[0]
|
||||
prefix = 'Watch '
|
||||
if title.startswith(prefix):
|
||||
return title[len(prefix):]
|
||||
return ""
|
||||
|
||||
@@ -36,3 +36,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")
|
||||
video_urls.append(['MP4 [Streamtape]', url])
|
||||
return video_urls
|
||||
|
||||
|
||||
def get_filename(page_url):
|
||||
return httptools.downloadpage(page_url).data.split('<meta name="og:title" content="')[1].split('"')[0]
|
||||
|
||||
@@ -34,3 +34,11 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
video_urls.append([" [Voe]", url])
|
||||
|
||||
return video_urls
|
||||
|
||||
|
||||
def get_filename(page_url):
|
||||
title = httptools.downloadpage(page_url).data.split('<title>')[1].split('</title>')[0]
|
||||
prefix = 'Watch '
|
||||
if title.startswith(prefix):
|
||||
return title[len(prefix):]
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user