Commit 1fcbf8dd authored by Georg Ehrke's avatar Georg Ehrke
Browse files

implemenet getNoCoverThumbnail

parent cc478d2f
......@@ -20,7 +20,6 @@ class MP3 extends Provider {
$tmppath = $fileview->toTmpFile($path);
//Todo - add stream support
$tags = $getID3->analyze($tmppath);
\getid3_lib::CopyTagsToComments($tags);
$picture = @$tags['id3v2']['APIC'][0]['data'];
......@@ -32,8 +31,14 @@ class MP3 extends Provider {
}
public function getNoCoverThumbnail($maxX, $maxY) {
$image = new \OC_Image();
return $image;
$icon = \OC::$SERVERROOT . '/core/img/filetypes/audio.png';
if(!file_exists($icon)) {
return false;
}
$image = new \OC_Image($icon);
return $image->valid() ? $image : false;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment