Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
1fcbf8dd
Commit
1fcbf8dd
authored
Jun 19, 2013
by
Georg Ehrke
Browse files
implemenet getNoCoverThumbnail
parent
cc478d2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/preview/mp3.php
View file @
1fcbf8dd
...
...
@@ -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
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment