Catch TypeErrors when retrieving mediainfo for files

This commit is contained in:
DariusIII
2020-05-02 18:25:48 +02:00
parent 2f7d699320
commit 9efd1fc987
@@ -1783,6 +1783,9 @@ class ProcessAdditional
}
} catch (\RuntimeException $e) {
Log::debug($e->getMessage());
} catch (\TypeError $e) {
Log::debug($e->getMessage());
}
}
@@ -2103,7 +2106,7 @@ class ProcessAdditional
// Look for the video file.
if (File::isFile($fileLocation)) {
try {
$xmlArray = $this->mediaInfo->getInfo($fileLocation, false);
$xmlArray = $this->mediaInfo->getInfo($fileLocation, true);
// Check if we got it.
@@ -2123,6 +2126,10 @@ class ProcessAdditional
} catch (\RuntimeException $e) {
Log::debug($e->getMessage());
return false;
} catch (\TypeError $e) {
Log::debug($e->getMessage());
return false;
}
}