Merge pull request #18511 from Al2Klimov/bugfix/movie-getthumbnail
Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false
This commit is contained in:
commit
a5f6ec74ce
|
@ -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 New Issue