diff options
author | lolcat <will@lolcat.ca> | 2024-05-24 08:00:00 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2024-05-24 08:00:00 -0400 |
commit | 16d31f5b269aa82bd4d6836196aff5205ddcf456 (patch) | |
tree | 91a7b295bd210f39383c77ad305de485cfa9202a | |
parent | 20079079726760d1fb79be85b60ef8a7584b440b (diff) |
soundcloud fix
-rw-r--r-- | scraper/sc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scraper/sc.php b/scraper/sc.php index 2b847c7..0dbb3ad 100644 --- a/scraper/sc.php +++ b/scraper/sc.php @@ -230,7 +230,7 @@ class sc{ } // token might've expired, get a new one and re-try search - get_token($proxy); + $this->get_token($proxy); return $this->music($get, true); } @@ -396,13 +396,15 @@ class sc{ $token = apcu_fetch("sc_token"); + echo $token; + if($token === false){ try{ $js = $this->get( $proxy, - "https://a-v2.sndcdn.com/assets/1-c3e4038d.js", + "https://a-v2.sndcdn.com/assets/0-a901c1e0.js", [] ); }catch(Exception $error){ |