mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Update the MP3 extractor to output audio keys (related to ALF-6170), and refactor the audio extractors to share more common code. Also expands the audio extractor tests to share common code, and test more metadata. (Needed for devcon demo)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31013 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -662,7 +662,16 @@ abstract public class AbstractMappingMetadataExtracter implements MetadataExtrac
|
||||
// Ask Tika to detect the document, and report back on if
|
||||
// the current mime type is plausible
|
||||
String typeErrorMessage = null;
|
||||
String differentType = mimetypeService.getMimetypeIfNotMatches(reader.getReader());
|
||||
String differentType = null;
|
||||
if(mimetypeService != null)
|
||||
{
|
||||
differentType = mimetypeService.getMimetypeIfNotMatches(reader.getReader());
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.info("Unable to verify mimetype of " + reader.getReader() +
|
||||
" as no MimetypeService available to " + getClass().getName());
|
||||
}
|
||||
if(differentType != null)
|
||||
{
|
||||
typeErrorMessage = "\n" +
|
||||
|
Reference in New Issue
Block a user