From 5dc38ffe6b38b70db1cfd1cce9f4f16ef89cf287 Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Wed, 3 Jul 2024 07:12:47 -0300 Subject: [PATCH] https://github.com/WWBN/AVideo/issues/9176 reverted, I am not sure yet --- objects/video.php | 2 +- plugin/Cache/Cache.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/objects/video.php b/objects/video.php index 10e653e1c988..2e93990de099 100644 --- a/objects/video.php +++ b/objects/video.php @@ -5133,7 +5133,7 @@ public static function getImageFromFilename_($filename, $type = "video") if (empty($obj->thumbsJpgSmall)) { $obj->thumbsJpgSmall = $obj->poster; } - if (!empty($advancedCustom->disableAnimatedGif) || (isMobile() && isFirstPage())) { + if (!empty($advancedCustom->disableAnimatedGif)) { $obj->thumbsGif = false; } diff --git a/plugin/Cache/Cache.php b/plugin/Cache/Cache.php index 7b19d4532fbe..fa4c383fbd15 100644 --- a/plugin/Cache/Cache.php +++ b/plugin/Cache/Cache.php @@ -51,11 +51,13 @@ public function getCacheDir($ignoreFirstPage = true) { $obj = $this->getDataObject(); if (!$ignoreFirstPage && $this->isFirstPage()) { $obj->cacheDir .= "firstPage" . DIRECTORY_SEPARATOR; + /* if(isMobile()){ $obj->cacheDir .= "mobile" . DIRECTORY_SEPARATOR; }else{ $obj->cacheDir .= "desktop" . DIRECTORY_SEPARATOR; } + */ if (User::isLogged()) { $obj->cacheDir .= 'users_id_' . md5(User::getId() . $global['salt']) . DIRECTORY_SEPARATOR; }