|
|
@@ -48,9 +48,10 @@ public class MusicInfoServiceImpl implements MusicInfoService { |
|
|
|
public ResultData saveOrUpdate(MusicInfo record) { |
|
|
|
VideUploadResult videoDetail = videoFactory.getExcutor(videoType).getVideoDetailWithCache(record.getVoiceId()); |
|
|
|
if (videoDetail.isSuccess() && StringUtils.isNotBlank(videoDetail.getDuration()) && !"0.0".equals(videoDetail.getDuration())) { |
|
|
|
record.setTime(Long.valueOf(videoDetail.getDuration())); |
|
|
|
record.setTime(Double.valueOf(videoDetail.getDuration())); |
|
|
|
record.setSize(videoDetail.getSize()); |
|
|
|
record.setUrl(videoDetail.getVideoUrl()); |
|
|
|
record.setName(videoDetail.getTitle().split("\\.")[0]); |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isBlank(record.getUrl())) { |
|
|
|