From 988f9e39153b7a6d023ede21175b80c85596f2b9 Mon Sep 17 00:00:00 2001 From: octt <6083316-octospacc@users.noreply.gitlab.com> Date: Fri, 23 May 2025 12:55:03 +0200 Subject: [PATCH] v0.10, 27/01 --- Proxatore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Proxatore.php b/Proxatore.php index 96a1b0f..d2e29e5 100644 --- a/Proxatore.php +++ b/Proxatore.php @@ -285,7 +285,7 @@ if (isset($_GET['proxatore-search']) && ($search = $_GET['proxatore-search']) != ]; //if ((in_array($platform, PLATFORMS_VIDEO) && !$immediateResult['video']) || !$immediateResult['image']) { $html = fetchContent(makeEmbedUrl($platform, $relativeUrl))['body']; - if (!$immediateResult['video'] && ($vidpos = strpos($html, '.mp4'))) { + if (!$immediateResult['video'] && ($vidpos = (strpos($html, '.mp4?') ?? strpos($html, '.mp4')))) { //$startpos = 0;//strpos(strrev(substr($html, 0, $vidpos)), '"'); $endpos = strpos($html, '"', $vidpos); //strpos(substr($html, $vidpos), '"'); $vidstr = substr($html, 0, $endpos);