xtn-tools-pro 1.0.0.7.6__py3-none-any.whl → 1.0.0.7.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xtn_tools_pro/task_pro/go_fun_v3.py +8 -5
- {xtn_tools_pro-1.0.0.7.6.dist-info → xtn_tools_pro-1.0.0.7.7.dist-info}/METADATA +1 -1
- {xtn_tools_pro-1.0.0.7.6.dist-info → xtn_tools_pro-1.0.0.7.7.dist-info}/RECORD +6 -6
- {xtn_tools_pro-1.0.0.7.6.dist-info → xtn_tools_pro-1.0.0.7.7.dist-info}/LICENSE +0 -0
- {xtn_tools_pro-1.0.0.7.6.dist-info → xtn_tools_pro-1.0.0.7.7.dist-info}/WHEEL +0 -0
- {xtn_tools_pro-1.0.0.7.6.dist-info → xtn_tools_pro-1.0.0.7.7.dist-info}/top_level.txt +0 -0
@@ -29,6 +29,7 @@ class GoFunTaskV3:
|
|
29
29
|
port = ini_dict.get('port', 0) # 端口
|
30
30
|
task = ini_dict.get('task', '') # 任务
|
31
31
|
auto = ini_dict.get('auto', '') # token
|
32
|
+
proxies_dict = ini_dict.get('proxies_dict', {}) # 自定义代理
|
32
33
|
processes_num = ini_dict.get('processes_num', 0) # 进程数
|
33
34
|
thread_num = ini_dict.get('thread_num', 0) # 线程数
|
34
35
|
restart_time = ini_dict.get('restart_time', 0) # 间隔x秒强制重启
|
@@ -60,6 +61,7 @@ class GoFunTaskV3:
|
|
60
61
|
"port": int(port),
|
61
62
|
"task": task,
|
62
63
|
"auto": auto,
|
64
|
+
"proxies_dict": proxies_dict,
|
63
65
|
"processes_num": int(processes_num),
|
64
66
|
"thread_num": int(thread_num),
|
65
67
|
"restart_time": int(restart_time),
|
@@ -83,7 +85,7 @@ class GoFunTaskV3:
|
|
83
85
|
self.upload_queue = multiprocessing.Queue()
|
84
86
|
manager = multiprocessing.Manager() # 进程1
|
85
87
|
self.manager_info = manager.dict()
|
86
|
-
self.proxies_dict = manager.dict()
|
88
|
+
self.proxies_dict = proxies_dict if proxies_dict else manager.dict()
|
87
89
|
|
88
90
|
# 获取任务
|
89
91
|
thread_download_task = threading.Thread(target=self.__download_task,
|
@@ -95,10 +97,11 @@ class GoFunTaskV3:
|
|
95
97
|
args=(self.upload_queue, self.__ini_info, logger))
|
96
98
|
thread_upload_task.start()
|
97
99
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
100
|
+
if not self.proxies_dict:
|
101
|
+
# 维护代理
|
102
|
+
thread_update_proxy = threading.Thread(target=self.__update_proxy,
|
103
|
+
args=(self.proxies_dict, self.manager_info, self.__ini_info, logger))
|
104
|
+
thread_update_proxy.start()
|
102
105
|
|
103
106
|
# go_task_fun_cnt = 0
|
104
107
|
# go_task_fun_task_process = None
|
@@ -12,7 +12,7 @@ xtn_tools_pro/proxy/proxy.py,sha256=No6E1pFY5yx2F4976pXPrLtq-QEVp79KupzcufjSN58,
|
|
12
12
|
xtn_tools_pro/task_pro/__init__.py,sha256=nK3U47hWwE1H875ieEToH9r-jzXHS-PXk8cDstOvRE8,418
|
13
13
|
xtn_tools_pro/task_pro/go_fun.py,sha256=hWEt2uJ9FCvJH7PhVZttS-11A7J6zbRKwX7c5YLYQag,19144
|
14
14
|
xtn_tools_pro/task_pro/go_fun_v2.py,sha256=SgcXgtEBGSVL1V2LyqO0z8Md2H8JZxucYrLLIwqtiLM,18489
|
15
|
-
xtn_tools_pro/task_pro/go_fun_v3.py,sha256=
|
15
|
+
xtn_tools_pro/task_pro/go_fun_v3.py,sha256=v8w6EayuhUcHQxJ0m7XFExI3cV_JZZaFIxhsTX4JxH4,16406
|
16
16
|
xtn_tools_pro/utils/__init__.py,sha256=I1_n_NP23F2lBqlF4EOlnOdLYxM8M4pbn63UhJN1hRE,418
|
17
17
|
xtn_tools_pro/utils/crypto.py,sha256=oyzFqWum_oimUtzhfVCELQhdMjxDbLu-nOWfcNmazcc,4087
|
18
18
|
xtn_tools_pro/utils/file_utils.py,sha256=obaBP7CaBCsXxzqGeWzV2l0yw7vicgKOaXzmpMV8ips,2567
|
@@ -22,8 +22,8 @@ xtn_tools_pro/utils/retry.py,sha256=0wjHsR5DBBKpv4naMfxiky8kprrZes4WURIfFQ4H708,
|
|
22
22
|
xtn_tools_pro/utils/set_data.py,sha256=IthfAclck7AbaxOIKOgJZ2wdcfEmlvC-C63Tywcr4bA,11180
|
23
23
|
xtn_tools_pro/utils/sql.py,sha256=EAKzbkZP7Q09j15Gm6o0_uq0qgQmcCQT6EAawbpp4v0,6263
|
24
24
|
xtn_tools_pro/utils/time_utils.py,sha256=TUtzG61PeVYXhaQd6pBrXAdlz7tBispNIRQRcGhE2No,4859
|
25
|
-
xtn_tools_pro-1.0.0.7.
|
26
|
-
xtn_tools_pro-1.0.0.7.
|
27
|
-
xtn_tools_pro-1.0.0.7.
|
28
|
-
xtn_tools_pro-1.0.0.7.
|
29
|
-
xtn_tools_pro-1.0.0.7.
|
25
|
+
xtn_tools_pro-1.0.0.7.7.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
+
xtn_tools_pro-1.0.0.7.7.dist-info/METADATA,sha256=9IZ1bUfo7MvRmyO-rJot0uDqpV5sEnqMtgyK4TmrWAo,498
|
27
|
+
xtn_tools_pro-1.0.0.7.7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
28
|
+
xtn_tools_pro-1.0.0.7.7.dist-info/top_level.txt,sha256=jyB3FLDEr8zE1U7wHczTgIbvUpALhR-ULF7RVEO7O2U,14
|
29
|
+
xtn_tools_pro-1.0.0.7.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|