Skip to content

Commit

Permalink
fixed streamtape (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjixWasTaken committed Feb 25, 2021
1 parent 389674e commit b5c104f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions anime_downloader/extractors/streamtape.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
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,
Expand Down

0 comments on commit b5c104f

Please sign in to comment.