|
@@ -430,20 +430,16 @@ class FilterVideos(object):
|
|
|
1-已观看 2-视频状态 3-是否进入老年人社区 4-话题状态 5-推荐状态 6-白名单过滤 7-涉政视频过滤
|
|
|
:return: filtered_videos
|
|
|
"""
|
|
|
-
|
|
|
- if self.app_type == config_.APP_TYPE['APP']:
|
|
|
-
|
|
|
- types = (1, )
|
|
|
-
|
|
|
- if self.app_type not in config_.POLITICAL_RECOMMEND_APP_TYPE_LIST:
|
|
|
-
|
|
|
- types = list(types)
|
|
|
- types.append(7)
|
|
|
+
|
|
|
+ types = config_.FILTER_VIEWED_TYPES_CONFIG.get(self.app_type, None)
|
|
|
+ if types is None:
|
|
|
+ types = config_.FILTER_VIEWED_TYPES_CONFIG.get('other')
|
|
|
request_data = {"appType": self.app_type,
|
|
|
"mid": self.mid,
|
|
|
"uid": self.uid,
|
|
|
"types": list(types),
|
|
|
"videoIds": video_ids}
|
|
|
+
|
|
|
result = request_post(request_url=config_.VIDEO_FILTER_URL, request_data=request_data, timeout=(0.1, 1))
|
|
|
|
|
|
if result is None:
|