wangkun 2 سال پیش
والد
کامیت
bd8d038e02
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      common/common.py

+ 4 - 2
common/common.py

@@ -203,7 +203,8 @@ class Common:
 
             # 下载视频
             urllib3.disable_warnings()
-            response = requests.get(video_url, stream=True, proxies=cls.tunnel_proxies(), verify=False)
+            # response = requests.get(video_url, stream=True, proxies=cls.tunnel_proxies(), verify=False)
+            response = requests.get(video_url, stream=True, proxies=proxies, verify=False)
             try:
                 with open(video_path + video_name, "wb") as f:
                     for chunk in response.iter_content(chunk_size=10240):
@@ -219,7 +220,8 @@ class Common:
 
             # 下载视频
             urllib3.disable_warnings()
-            response = requests.get(audio_url, stream=True, proxies=cls.tunnel_proxies(), verify=False)
+            # response = requests.get(audio_url, stream=True, proxies=cls.tunnel_proxies(), verify=False)
+            response = requests.get(audio_url, stream=True, proxies=proxies, verify=False)
             try:
                 with open(video_path + audio_name, "wb") as f:
                     for chunk in response.iter_content(chunk_size=10240):