fixed streamtape (#637)

master
Arjix 2021-02-25 16:16:57 +02:00 committed by GitHub
parent 389674e910
commit b5c104f6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -7,9 +7,12 @@ import re
class StreamTape(BaseExtractor):
def _get_data(self):
resp = helpers.get(self.url, cache=False).text
url = "https:" + \
re.search(
"document\.getElementById\([\"']videolink[\"']\);.*?innerHTML.*?=.*?[\"'](.*?)[\"']", resp).group(1)
groups = re.search(
r"document\.getElementById\(.*?\)\.innerHTML = [\"'](.*?)[\"'] \+ [\"'](.*?)[\"']",
resp
)
url = "https:" + groups[1] + groups[2]
return {
'stream_url': url,