wangkun 3 년 전
부모
커밋
df0416610c
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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"',