From d3ef1a67c0ff094d5534010311761acbc40ac7b9 Mon Sep 17 00:00:00 2001 From: lolcat Date: Mon, 4 Aug 2025 00:39:13 -0400 Subject: [PATCH] aaaaaa part 2 --- scraper/vimeo.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scraper/vimeo.php b/scraper/vimeo.php index 37b6a3b..4d95ac5 100644 --- a/scraper/vimeo.php +++ b/scraper/vimeo.php @@ -679,6 +679,25 @@ class vimeo{ throw new Exception("Failed to fetch JWT token"); } + + $this->fuckhtml->load($html); + + $captcha = + $this->fuckhtml + ->getElementsByTagName( + "title" + ); + + if( + count($captcha) !== 0 && + $this->fuckhtml + ->getTextContent( + $captcha[0] + ) == "Vimeo / CAPTCHA Challenge" + ){ + + throw new Exception("Vimeo returned a Captcha"); + } $json = json_decode($json, true);