#2196 strange default Title in the web interface

This commit is contained in:
sebastian 2010-02-10 17:27:31 +00:00
parent 4e1bce8e84
commit 2461111397
1 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,12 @@ class uiHandler extends uiBase {
$this->redirUrl = UI_BROWSER."?act=addFileData&folderId=".$formdata['folderId'];
return FALSE;
}
// #2196 no id tag -> use the original filename
if (basename($formdata['mediafile']['tmp_name']) == $metadata['dc:title']) {
$metadata['dc:title'] = $formdata['mediafile']['name'];
$metadata['ls_filename'] = $formdata['mediafile']['name'];
}
// bsSetMetadataBatch doesnt like these values
unset($metadata['audio']);
unset($metadata['playtime_seconds']);