summaryrefslogtreecommitdiff
path: root/scraper/facebook.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-08-10 23:03:01 -0400
committerlolcat <will@lolcat.ca>2023-08-10 23:03:01 -0400
commite6f77a9ca6aafbaacb2a041a166e9e2f2d1d1b9b (patch)
tree775fa98491f57616a742a85fdbb9a3506771c2f7 /scraper/facebook.php
parent2913c58cecc26b699ec44c19f105f036f3dcb6a6 (diff)
fix the faceberg urls
Diffstat (limited to 'scraper/facebook.php')
-rw-r--r--scraper/facebook.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/scraper/facebook.php b/scraper/facebook.php
index ebb5466..46d58d6 100644
--- a/scraper/facebook.php
+++ b/scraper/facebook.php
@@ -579,6 +579,8 @@ class facebook{
["video_metadata_model"]
["relative_time_string"];
+ $url_prefix = "https://www.facebook.com/watch/live/?v=";
+
}elseif(
stripos(
$edge
@@ -602,6 +604,8 @@ class facebook{
["video_duration_text"]
);
+ $url_prefix = "https://www.facebook.com/watch/live/?v=";
+
}else{
// handle normal format
@@ -630,6 +634,8 @@ class facebook{
["video_thumbnail_model"]
["video_duration_text"]
);
+
+ $url_prefix = "https://www.facebook.com/watch/?v=";
}
if(
@@ -706,7 +712,7 @@ class facebook{
"ratio" => "16:9"
],
"url" =>
- "https://www.facebook.com/watch/?v=" .
+ $url_prefix .
$edge
["video_click_model"]
["click_metadata_model"]