mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 18:28:54 +00:00
Catch TypeErrors when retrieving mediainfo for files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user