diff --git a/bot/helper/mirror_leech_utils/download_utils/direct_link_generator.py b/bot/helper/mirror_leech_utils/download_utils/direct_link_generator.py index a2abb79a879..01f387f845b 100644 --- a/bot/helper/mirror_leech_utils/download_utils/direct_link_generator.py +++ b/bot/helper/mirror_leech_utils/download_utils/direct_link_generator.py @@ -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")