Skip to content

Commit

Permalink
Merge pull request #1726 from pachax001/master
Browse files Browse the repository at this point in the history
Fix for streamtape
  • Loading branch information
anasty17 authored Jun 8, 2024
2 parents 96809d1 + 4b4225b commit c6e2268
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ def streamtape(url):
html = HTML(session.get(url).text)
except Exception as e:
raise DirectDownloadLinkException(f"ERROR: {e.__class__.__name__}") from e
if not (script := html.xpath("//script[contains(text(),'ideoooolink')]/text()")):
script = html.xpath("//script[contains(text(),'ideoooolink')]/text()") or html.xpath("//script[contains(text(),'ideoolink')]/text()")
if not script:
raise DirectDownloadLinkException("ERROR: requeries script not found")
if not (link := findall(r"(&expires\S+)'", script[0])):
raise DirectDownloadLinkException("ERROR: Download link not found")
Expand Down

0 comments on commit c6e2268

Please sign in to comment.