aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-08-04 00:37:12 -0400
committerlolcat <will@lolcat.ca>2025-08-04 00:37:12 -0400
commit9afef55d899edd59f30f4d27d187e10a960e5a9d (patch)
tree194e42dae270426a181cc5713aec10382eced752
parent706b490bf35db32aaf54c5dc202c0a1aa690e411 (diff)
aaaaaa
-rw-r--r--scraper/vimeo.php21
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){
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage