Merge pull request #18511 from Al2Klimov/bugfix/movie-getthumbnail

Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false
This commit is contained in:
Roeland Jago Douma 2019-12-22 20:13:04 +01:00 committed by GitHub
commit a5f6ec74ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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);
}
}