From d10742173dd3d9ab0f3f40a8ea30682f922de484 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 9 Mar 2021 11:36:58 -0300 Subject: [PATCH] Get embed videos too --- objects/Encoder.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/objects/Encoder.php b/objects/Encoder.php index 895888acb..85aea3826 100644 --- a/objects/Encoder.php +++ b/objects/Encoder.php @@ -1854,6 +1854,9 @@ static function getThumbsFromLink($link, $returnFileName = false) { if(!@filesize($returnTmpfname)){ if(@filesize($returnTmpfname.'.webp')){ $returnTmpfname = $returnTmpfname.'.webp'; + }else + if(@filesize($returnTmpfname.'.jpg')){ + $returnTmpfname = $returnTmpfname.'.jpg'; } }