wangkun 2 years ago
parent
commit
7f3b1974c7
1 changed files with 4 additions and 2 deletions
  1. 4 2
      main/haokan_channel.py

+ 4 - 2
main/haokan_channel.py

@@ -58,7 +58,8 @@ class Channel:
                 'Cache-Control': 'no-cache',
                 'Connection': 'keep-alive',
                 'Content-Type': 'application/x-www-form-urlencoded',
-                'Cookie': str(cookies).strip().replace('\n', ''),
+                # 'Cookie': str(cookies).strip().replace('\n', ''),
+                'Cookie': Feishu.get_values_batch(log_type, 'haokan', '5LksMx')[0][0],
                 'Pragma': 'no-cache',
                 'Referer': 'https://haokan.baidu.com/tab/recommend',
                 'Sec-Fetch-Dest': 'empty',
@@ -98,7 +99,8 @@ class Channel:
                 'Cache-Control': 'no-cache',
                 'Connection': 'keep-alive',
                 'Content-Type': 'application/x-www-form-urlencoded',
-                'Cookie': str(cookies).strip().replace('\n', ''),
+                # 'Cookie': str(cookies).strip().replace('\n', ''),
+                'Cookie': Feishu.get_values_batch(log_type, 'haokan', '5LksMx')[0][0],
                 'Pragma': 'no-cache',
                 'Referer': 'https://haokan.hao123.com/v?vid='+str(video_id)+'&pd=pc&context=',
                 'sec-ch-ua': '"Microsoft Edge";v="107", "Chromium";v="107", "Not=A?Brand";v="24"',