|
|
@@ -47,7 +47,11 @@ public class MusicInfoServiceImpl implements MusicInfoService { |
|
|
|
@Override |
|
|
|
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())) { |
|
|
|
if (videoDetail.isSuccess() |
|
|
|
&& StringUtils.isNotBlank(videoDetail.getDuration()) |
|
|
|
&& !"0.0".equals(videoDetail.getDuration()) |
|
|
|
&& StringUtils.isNotBlank(videoDetail.getTitle()) |
|
|
|
&& StringUtils.isNotBlank(videoDetail.getVideoUrl())) { |
|
|
|
record.setTime(Double.valueOf(videoDetail.getDuration())); |
|
|
|
record.setSize(videoDetail.getSize()); |
|
|
|
record.setUrl(videoDetail.getVideoUrl()); |
|
|
|