Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false

Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
This commit is contained in:
Alexander A. Klimov 2019-12-21 08:53:13 +01:00
parent bc291d50c3
commit 7cc2143bb3

View file

@ -52,9 +52,9 @@ class Movie extends ProviderV2 {
$absPath = $this->getLocalFile($file, 5242880); // only use the first 5MB
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 5);
if ($result === false) {
if ($result === null) {
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 1);
if ($result === false) {
if ($result === null) {
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 0);
}
}