mirror of
https://github.com/nextcloud/server.git
synced 2026-06-04 22:35:24 -04:00
load getID3 only if needed
This commit is contained in:
parent
b944b1c5d2
commit
f7c80a391d
1 changed files with 2 additions and 2 deletions
|
|
@ -7,8 +7,6 @@
|
|||
*/
|
||||
namespace OC\Preview;
|
||||
|
||||
require_once('getid3/getid3.php');
|
||||
|
||||
class MP3 extends Provider {
|
||||
|
||||
public function getMimeType() {
|
||||
|
|
@ -16,6 +14,8 @@ class MP3 extends Provider {
|
|||
}
|
||||
|
||||
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
|
||||
require_once('getid3/getid3.php');
|
||||
|
||||
$getID3 = new \getID3();
|
||||
|
||||
$tmppath = $fileview->toTmpFile($path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue