aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scraper/vimeo.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/scraper/vimeo.php b/scraper/vimeo.php
index 028a222..f9fdb84 100644
--- a/scraper/vimeo.php
+++ b/scraper/vimeo.php
@@ -614,6 +614,25 @@ class vimeo{
false
);
+ $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");
+ }
+
$html =
explode(
'<script id="viewer-bootstrap" type="application/json">',
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage