zhangyong 5 月之前
父節點
當前提交
e9a3bae009
共有 1 個文件被更改,包括 12 次插入12 次删除
  1. 12 12
      video_rewriting/video_processor.py

+ 12 - 12
video_rewriting/video_processor.py

@@ -673,18 +673,18 @@ class VideoProcessor:
             return
         task = json.loads(data)
         try:
-            # if mark == 'dy-pl-gjc' and task['channel_id'] == '抖音搜索':
-            #     mark_count = 'dyss-count'
-            #     count = get_first_value_with_prefix(mark_count)
-            #     increment_key(mark_count)
-            #     if int(count) >= 300:
-            #         return "抖音搜索上限"
-            # if mark == 'ks-pl-gjc':
-            #     mark_count = 'ksss-count'
-            #     count = get_first_value_with_prefix(mark_count)
-            #     increment_key(mark_count)
-            #     if int(count) >= 300:
-            #         return "快手搜索上限"
+            if mark == 'dy-pl-gjc' and task['channel_id'] == '抖音搜索':
+                mark_count = 'dyss-count'
+                count = get_first_value_with_prefix(mark_count)
+                increment_key(mark_count)
+                if int(count) >= 300:
+                    return "抖音搜索上限"
+            if mark == 'ks-pl-gjc':
+                mark_count = 'ksss-count'
+                count = get_first_value_with_prefix(mark_count)
+                increment_key(mark_count)
+                if int(count) >= 300:
+                    return "快手搜索上限"
             if mark == 'sph-pl-gjc':
                 mark_count = 'ss-sph-count'
                 count = get_first_value_with_prefix(mark_count)