|
@@ -7,6 +7,7 @@ import requests
|
|
|
|
|
|
from applications.functions.common import sensitive_flag
|
|
from applications.functions.common import sensitive_flag
|
|
from applications.log import logging
|
|
from applications.log import logging
|
|
|
|
+from applications.const import server_const
|
|
|
|
|
|
|
|
|
|
def douyin_search(keyword, sensitive_words, trace_id):
|
|
def douyin_search(keyword, sensitive_words, trace_id):
|
|
@@ -44,7 +45,7 @@ def douyin_search(keyword, sensitive_words, trace_id):
|
|
title = obj['video_desc']
|
|
title = obj['video_desc']
|
|
video_id = obj['video_id']
|
|
video_id = obj['video_id']
|
|
duration = int(obj['duration'])
|
|
duration = int(obj['duration'])
|
|
- if sensitive_flag(sensitive_words, title) and duration < 30000:
|
|
|
|
|
|
+ if sensitive_flag(sensitive_words, title) and duration < server_const.MAX_VIDEO_DURATION * 1000:
|
|
res = douyin_detail(video_id)
|
|
res = douyin_detail(video_id)
|
|
if res:
|
|
if res:
|
|
L.append(res)
|
|
L.append(res)
|