summaryrefslogtreecommitdiff
path: root/scraper/yandex.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-09-03 22:41:44 -0400
committerlolcat <will@lolcat.ca>2023-09-03 22:41:44 -0400
commitc8ab934b108c83a391583ea8ae7f717c9753926e (patch)
tree35f23c328249b3259de5e2a60c23a314c84f62f4 /scraper/yandex.php
parentcfd44438aea9740e0a2c34487424c87126862cc9 (diff)
soundcloud lolllllll
Diffstat (limited to 'scraper/yandex.php')
-rw-r--r--scraper/yandex.php19
1 files changed, 12 insertions, 7 deletions
diff --git a/scraper/yandex.php b/scraper/yandex.php
index 8cb733e..65abe73 100644
--- a/scraper/yandex.php
+++ b/scraper/yandex.php
@@ -959,6 +959,7 @@ class yandex{
"img"
);
+ $c = 1;
if(count($thumb) === 0){
$thumb = [
@@ -967,7 +968,6 @@ class yandex{
];
}else{
- $c = 1;
$thumb = [
"url" =>
str_replace(
@@ -1065,12 +1065,17 @@ class yandex{
"views" => $views,
"thumb" => $thumb,
"url" =>
- $this->fuckhtml
- ->getTextContent(
- $data["counters"]
- ["toHostingLoaded"]
- ["postfix"]
- ["href"]
+ str_replace(
+ "http://",
+ "https://",
+ $this->fuckhtml
+ ->getTextContent(
+ $data["counters"]
+ ["toHostingLoaded"]
+ ["postfix"]
+ ["href"]
+ ),
+ $c
)
];
}