Fix Go Unlimited e UPstream

This commit is contained in:
Alhaziel01
2020-04-02 18:09:11 +02:00
parent 3f447ae0d3
commit e7fe125e95
2 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -13,13 +13,13 @@ def test_video_exists(page_url):
global data
data = httptools.downloadpage(page_url).data
if "<h2>WE ARE SORRY</h2>" in data or '<title>404 Not Found</title>' in data:
return False, config.get_localized_string(70449) % "UP Stream"
return False, config.get_localized_string(70449) % "UPstream"
return True, ""
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
video_urls = []
media_url = scrapertools.find_single_match(data, r'file:"([^"]+)"')
video_urls.append(["%s [UP Stream]" % media_url.split('.'[-1]), media_url])
video_urls.append(["%s [UPstream]" % media_url.split('.')[-1], media_url])
return video_urls