Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
This commit is contained in:
parent
bc291d50c3
commit
7cc2143bb3
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue