diff options
| author | lolcat <will@lolcat.ca> | 2025-08-04 00:37:12 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-08-04 00:37:12 -0400 |
| commit | 9afef55d899edd59f30f4d27d187e10a960e5a9d (patch) | |
| tree | 194e42dae270426a181cc5713aec10382eced752 /scraper/vimeo.php | |
| parent | 706b490bf35db32aaf54c5dc202c0a1aa690e411 (diff) | |
aaaaaa
Diffstat (limited to 'scraper/vimeo.php')
| -rw-r--r-- | scraper/vimeo.php | 21 |
1 files 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){ |
