From 9afef55d899edd59f30f4d27d187e10a960e5a9d Mon Sep 17 00:00:00 2001 From: lolcat Date: Mon, 4 Aug 2025 00:37:12 -0400 Subject: [PATCH] aaaaaa --- scraper/vimeo.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/scraper/vimeo.php b/scraper/vimeo.php index 89836a2..37b6a3b 100644 --- a/scraper/vimeo.php +++ b/scraper/vimeo.php @@ -667,14 +667,19 @@ class vimeo{ $jwt = $jwt["jwt"]; */ - $json = - $this->get( - $proxy, - "https://vimeo.com/_next/jwt", - [], - false - ); - + try{ + $json = + $this->get( + $proxy, + "https://vimeo.com/_next/jwt", + [], + false + ); + }catch(Exception $error){ + + throw new Exception("Failed to fetch JWT token"); + } + $json = json_decode($json, true); if($json === null){