mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2026-01-04 01:35:26 -05:00
aaaaaa part 2
This commit is contained in:
parent
9afef55d89
commit
d3ef1a67c0
1 changed files with 19 additions and 0 deletions
|
|
@ -679,6 +679,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue