Kaynağa Gözat

抖音优化

zhangyong 10 ay önce
ebeveyn
işleme
a0975e8033
1 değiştirilmiş dosya ile 1 ekleme ve 4 silme
  1. 1 4
      data_channel/douyin.py

+ 1 - 4
data_channel/douyin.py

@@ -54,11 +54,8 @@ class DY:
             next_cursor = str(obj.get('max_cursor')) if has_more else None
             data = obj.get('aweme_list', [])
             if data == [] and len(data) == 0:
-                return list
-            if not data[0].get('search_impr').get('entity_type'):
                 Feishu.bot(mark, '机器自动改造消息通知', f'抖音cookie过期,请及时更换', name)
-                time.sleep(900)
-                continue
+                return list
             response.close()
             for i in range(len(data)):
                 entity_type = data[i].get('search_impr').get('entity_type')