Skip to content

Commit

Permalink
Merge pull request #50051 from nextcloud/Fix/mp3_regex
Browse files Browse the repository at this point in the history
fix(preview): Do not try to parse M3U files as MP3
  • Loading branch information
blizzz authored Jan 7, 2025
2 parents d376790 + b165523 commit bd9a88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/PreviewManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected function registerCoreProviders() {
$this->registerCoreProvider(Preview\XBitmap::class, '/image\/x-xbitmap/');
$this->registerCoreProvider(Preview\WebP::class, '/image\/webp/');
$this->registerCoreProvider(Preview\Krita::class, '/application\/x-krita/');
$this->registerCoreProvider(Preview\MP3::class, '/audio\/mpeg/');
$this->registerCoreProvider(Preview\MP3::class, '/audio\/mpeg$/');
$this->registerCoreProvider(Preview\OpenDocument::class, '/application\/vnd.oasis.opendocument.*/');
$this->registerCoreProvider(Preview\Imaginary::class, Preview\Imaginary::supportedMimeTypes());
$this->registerCoreProvider(Preview\ImaginaryPDF::class, Preview\ImaginaryPDF::supportedMimeTypes());
Expand Down

0 comments on commit bd9a88b

Please sign in to comment.