summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/Generator.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-08-19 09:45:50 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-08-19 18:04:40 +0000
commitea37e69fc41453ab5b23f37e3188caf0d6a54195 (patch)
tree2bbfefe313e7d502c2164901b398d619578b6988 /lib/private/Preview/Generator.php
parent160dfbb78c3623b1e28707f336e7f4294b6c043b (diff)
downloadnextcloud-server-ea37e69fc41453ab5b23f37e3188caf0d6a54195.tar.gz
nextcloud-server-ea37e69fc41453ab5b23f37e3188caf0d6a54195.zip
Properly log errors in Movie previews generation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Preview/Generator.php')
-rw-r--r--lib/private/Preview/Generator.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php
index 2be08d1b2c4..440168633df 100644
--- a/lib/private/Preview/Generator.php
+++ b/lib/private/Preview/Generator.php
@@ -224,6 +224,7 @@ class Generator {
$previewProviders = $this->previewManager->getProviders();
foreach ($previewProviders as $supportedMimeType => $providers) {
+ // Filter out providers that does not support this mime
if (!preg_match($supportedMimeType, $mimeType)) {
continue;
}