Prevent log spam when missing mime (#258)

fastpreview
Varun Patil 2022-11-25 07:32:24 -08:00
parent cdfcec1a3f
commit 94516d183b
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ class LivePhoto
/** Check if a given Exif data is the video part of a live photo */ /** Check if a given Exif data is the video part of a live photo */
public function isVideoPart(array &$exif) public function isVideoPart(array &$exif)
{ {
return 'video/quicktime' === $exif['MIMEType'] && \array_key_exists('ContentIdentifier', $exif); return \array_key_exists('MIMEType', $exif)
&& 'video/quicktime' === $exif['MIMEType']
&& \array_key_exists('ContentIdentifier', $exif);
} }
/** Get liveid from photo part */ /** Get liveid from photo part */