From c16cccd1ae88fc3e5ea6af498e9903bacf143592 Mon Sep 17 00:00:00 2001 From: octt <6083316-octospacc@users.noreply.gitlab.com> Date: Fri, 23 May 2025 12:45:00 +0200 Subject: [PATCH] v0.3, 15/01 --- Proxatore.php | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/Proxatore.php b/Proxatore.php index e236d59..ac24188 100644 --- a/Proxatore.php +++ b/Proxatore.php @@ -147,9 +147,18 @@ if (isset($_GET['search']) && ($search = $_GET['search']) !== '') { $html = fetchContent(makeEmbedUrl($platform, $relativeUrl))['body']; $vidpos = strpos($html, '.mp4'); if ($vidpos) { - $startpos = strpos(substr(strrev($html), 0, $vidpos), '"'); - $endpos = strpos(substr($html, $vidpos), '"'); - echo $startpos . '|' . $endpos; //substr($html, $startpos, $endpos); + //$startpos = 0;//strpos(strrev(substr($html, 0, $vidpos)), '"'); + $endpos = strpos($html, '"', $vidpos); //strpos(substr($html, $vidpos), '"'); + $vidstr = substr($html, 0, $endpos); + //echo $vidstr; + $startpos = $endpos - strpos(strrev($vidstr), '"'); + $vidstr = substr($html, $startpos, $endpos-$startpos+1); + //echo $vidstr; + //echo '|' . $vidpos . '|' . $startpos . '|' . $endpos; //substr($html, $startpos, $endpos); + $vidstr = json_decode('"' . json_decode('"' . html_entity_decode($vidstr) . '"') . ''); + //echo $vidstr; + $immediateResult['video'] = $vidstr; + //echo '"' . $vidstr . '"'; } } $searchResults = [$immediateResult]; @@ -343,13 +352,12 @@ if (isset($_GET['search']) && ($search = $_GET['search']) !== '') { color: #1c1e21; margin-bottom: 5px; display: -webkit-box; - 90): ?> + } + + .history-item.ellipsize strong { -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; - } .history-item small { @@ -437,7 +445,10 @@ if (isset($_GET['search']) && ($search = $_GET['search']) !== '') { -
= htmlspecialchars($item['description']) ?>
- Open Original on = htmlspecialchars(PLATFORMS[$item['platform']][0] ?? '') ?>
- Proxatore Permalink
+ Original on = htmlspecialchars(PLATFORMS[$item['platform']][0] ?? '') ?>
+ = APPNAME ?> Permalink