aaaaaa part 2
This commit is contained in:
		
							parent
							
								
									9afef55d89
								
							
						
					
					
						commit
						d3ef1a67c0
					
				| @ -680,6 +680,25 @@ class vimeo{ | ||||
| 				throw new Exception("Failed to fetch JWT token"); | ||||
| 			} | ||||
| 			 | ||||
| 			$this->fuckhtml->load($html); | ||||
| 			 | ||||
| 			$captcha = | ||||
| 				$this->fuckhtml | ||||
| 				->getElementsByTagName( | ||||
| 					"title" | ||||
| 				); | ||||
| 			 | ||||
| 			if( | ||||
| 				count($captcha) !== 0 && | ||||
| 				$this->fuckhtml | ||||
| 				->getTextContent( | ||||
| 					$captcha[0] | ||||
| 				) == "Vimeo / CAPTCHA Challenge" | ||||
| 			){ | ||||
| 				 | ||||
| 				throw new Exception("Vimeo returned a Captcha"); | ||||
| 			} | ||||
| 				 | ||||
| 			$json = json_decode($json, true); | ||||
| 			 | ||||
| 			if($json === null){ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 lolcat
						lolcat