Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9176
Browse files Browse the repository at this point in the history
reverted, I am not sure yet
  • Loading branch information
Daniel Neto committed Jul 3, 2024
1 parent ed33257 commit 5dc38ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions plugin/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5dc38ff

Please sign in to comment.