fix streamtape
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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", "")
|
||||
|
||||
Reference in New Issue
Block a user