fix streamtape

This commit is contained in:
marco
2020-12-27 00:07:43 +01:00
parent 21619eb98c
commit d2095340be
2 changed files with 5 additions and 2 deletions

View File

@@ -4,7 +4,10 @@
"ignore_urls": [],
"patterns": [{
"pattern": "https?://streamtape\\.com/(?:e|v)/(\\w+)",
"url": "https://streamtape.com/e/\\1"
"url": "https://streamta.pe/e/\\1"
},{
"pattern": "https?://streamta\\.pe/(?:e|v)/(\\w+)",
"url": "https://streamta.pe/e/\\1"
}]
},
"free": true,

View File

@@ -29,7 +29,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
video_urls = []
possible_url = scrapertools.find_single_match(data, 'innerHTML = "([^"]+)')
if not '\\' in possible_url:
if not possible_url:
possible_url = scrapertools.find_single_match(data, "innerHTML\\'\]=\\'([^']+)")
url = "https:" + possible_url
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")