Skip to content
Snippets Groups Projects
Commit f7c80a39 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

load getID3 only if needed

parent b944b1c5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment