|
@@ -36,7 +36,7 @@ public class CrawlerVideoServiceImpl {
|
|
|
|
|
|
private static final String default_user_id = "69637498";
|
|
|
|
|
|
- private static final Double NLP_SIMILARITY_THRESHOLD = 0.45;
|
|
|
+ private static final Double NLP_SIMILARITY_THRESHOLD = 0.55;
|
|
|
|
|
|
private static final int MAX_NUM = 3;
|
|
|
|
|
@@ -141,7 +141,7 @@ public class CrawlerVideoServiceImpl {
|
|
|
CrawlerVideoExample example = new CrawlerVideoExample();
|
|
|
example.createCriteria().andContentIdEqualTo(contentId);
|
|
|
long l = crawlerVideoMapper.countByExample(example);
|
|
|
- return l >= MAX_NUM;
|
|
|
+ return l >= MIN_NUM;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -302,7 +302,7 @@ public class CrawlerVideoServiceImpl {
|
|
|
if (StringUtils.isNotEmpty(videoOssPath)) {
|
|
|
CrawlerVideo udpateCrawlerVideo = new CrawlerVideo();
|
|
|
udpateCrawlerVideo.setVideoOssPath(videoOssPath);
|
|
|
- if(StringUtils.isNotEmpty(coverPath)){
|
|
|
+ if (StringUtils.isNotEmpty(coverPath)) {
|
|
|
String coverOssPath = OSSUploader.uploadToOSS(coverPath, "image");
|
|
|
udpateCrawlerVideo.setCoverOssPath(coverOssPath);
|
|
|
}
|
|
@@ -328,7 +328,7 @@ public class CrawlerVideoServiceImpl {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
- return false;
|
|
|
+ return count >= MIN_NUM;
|
|
|
}
|
|
|
|
|
|
}
|