|
|
@ -436,6 +436,7 @@ public class CMSSongService {
|
|
|
|
if (upload > 0) {
|
|
|
|
if (upload > 0) {
|
|
|
|
SongInfo song = new SongInfo();
|
|
|
|
SongInfo song = new SongInfo();
|
|
|
|
song.setId(id);
|
|
|
|
song.setId(id);
|
|
|
|
|
|
|
|
song.setName(originalFilename.substring(0, originalFilename.lastIndexOf(Constants.DOT)));
|
|
|
|
song.setUrl(keySuffix);
|
|
|
|
song.setUrl(keySuffix);
|
|
|
|
song.setSize(file.isEmpty() ? 0L : file.getSize());
|
|
|
|
song.setSize(file.isEmpty() ? 0L : file.getSize());
|
|
|
|
song.setDuration(CommonUtil.getSongDuration(file));
|
|
|
|
song.setDuration(CommonUtil.getSongDuration(file));
|
|
|
|