wangyunpeng 2 hete
szülő
commit
4658d2ca64

+ 2 - 2
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -1060,7 +1060,7 @@ public class CoreServiceImpl implements CoreService {
                 continue;
             }
             VideoDetail videoDetail = VideoUtils.getVideoDetail(matchResult.getMatchVideoId());
-            if (videoDetail == null) {
+            if (videoDetail == null || StringUtils.isEmpty(videoDetail.getTitle())) {
                 log.warn("getVideoDetail null for matchVideoId={}", matchResult.getMatchVideoId());
                 continue;
             }
@@ -1139,7 +1139,7 @@ public class CoreServiceImpl implements CoreService {
                 continue;
             }
             VideoDetail videoDetail = VideoUtils.getVideoDetail(record.getVideoId());
-            if (videoDetail == null) {
+            if (videoDetail == null || StringUtils.isEmpty(videoDetail.getTitle())) {
                 log.warn("getVideoDetail null for videoId={}", record.getVideoId());
                 continue;
             }