Преглед изворни кода

fix brave being a little shit about pagination

lolcat пре 3 дана
родитељ
комит
1aa6278853
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      scraper/brave.php

+ 3 - 3
scraper/brave.php

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