wangkun 2 lat temu
rodzic
commit
df0416610c
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      main/haokan_channel.py

+ 4 - 4
main/haokan_channel.py

@@ -58,8 +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': Feishu.get_values_batch(log_type, 'haokan', '5LksMx')[0][0],
+                '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',
@@ -99,8 +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': Feishu.get_values_batch(log_type, 'haokan', '5LksMx')[0][0],
+                '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"',