|
@@ -4,6 +4,7 @@ import cn.hutool.http.HttpRequest;
|
|
|
import cn.hutool.http.HttpResponse;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.tzld.piaoquan.longarticle.common.constants.CrawlerConstant;
|
|
|
import com.tzld.piaoquan.longarticle.model.po.longarticle.CrawlerVideo;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
@@ -67,7 +68,7 @@ public class DouyinSearch {
|
|
|
String videoId = obj.getString("video_id");
|
|
|
int duration = obj.getInteger("duration");
|
|
|
|
|
|
- if (sensitiveFlag(sensitiveWords, title) && duration < 30000) {
|
|
|
+ if (sensitiveFlag(sensitiveWords, title) && duration < CrawlerConstant.MAX_VIDEO_DURATION * 1000) {
|
|
|
JSONObject res = douyinDetail(videoId);
|
|
|
if (res != null) {
|
|
|
resultList.add(res);
|