Explorar o código

fix brave being a little shit about pagination

lolcat hai 10 horas
pai
achega
1aa6278853
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      scraper/brave.php

+ 3 - 3
scraper/brave.php

@@ -388,14 +388,14 @@ class brave{
 		*/
 		*/
 		$nextpage =
 		$nextpage =
 			$this->fuckhtml
 			$this->fuckhtml
-			->getElementById(
+			->getElementsByClassName(
 				"pagination",
 				"pagination",
 				"div"
 				"div"
 			);
 			);
 		
 		
-		if($nextpage){
+		if(count($nextpage) !== 0){
 			
 			
-			$this->fuckhtml->load($nextpage);
+			$this->fuckhtml->load($nextpage[0]);
 			
 			
 			$nextpage =
 			$nextpage =
 				$this->fuckhtml
 				$this->fuckhtml