Browse Source

soundcloud fix

lolcat 2 năm trước cách đây
mục cha
commit
16d31f5b26
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      scraper/sc.php

+ 4 - 2
scraper/sc.php

@@ -230,7 +230,7 @@ class sc{
 			}
 			}
 			
 			
 			// token might've expired, get a new one and re-try search
 			// token might've expired, get a new one and re-try search
-			get_token($proxy);
+			$this->get_token($proxy);
 			return $this->music($get, true);
 			return $this->music($get, true);
 		}
 		}
 		
 		
@@ -396,13 +396,15 @@ class sc{
 		
 		
 		$token = apcu_fetch("sc_token");
 		$token = apcu_fetch("sc_token");
 		
 		
+		echo $token;
+		
 		if($token === false){
 		if($token === false){
 			
 			
 			try{
 			try{
 				$js =
 				$js =
 					$this->get(
 					$this->get(
 						$proxy,
 						$proxy,
-						"https://a-v2.sndcdn.com/assets/1-c3e4038d.js",
+						"https://a-v2.sndcdn.com/assets/0-a901c1e0.js",
 						[]
 						[]
 					);
 					);
 			}catch(Exception $error){
 			}catch(Exception $error){