ryry-cli 2.71__tar.gz → 2.73__tar.gz
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.
- {ryry_cli-2.71 → ryry_cli-2.73}/PKG-INFO +1 -1
- ryry_cli-2.73/ryry/constant.py +4 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/task.py +1 -1
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/upload.py +10 -56
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.71 → ryry_cli-2.73}/setup.py +1 -1
- ryry_cli-2.71/ryry/constant.py +0 -4
- {ryry_cli-2.71 → ryry_cli-2.73}/LICENSE +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/README.md +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/__init__.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/main.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/server_func.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/store.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry/utils.py +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.71 → ryry_cli-2.73}/setup.cfg +0 -0
|
@@ -144,7 +144,7 @@ def updateProgress(data, progress=50, taskUUID=None):
|
|
|
144
144
|
progress = 0
|
|
145
145
|
if progress > 100:
|
|
146
146
|
progress = 100
|
|
147
|
-
if realTaskUUID and realTaskUUID.startswith("local_") == False:
|
|
147
|
+
if realTaskUUID and len(realTaskUUID) > 10 and realTaskUUID.startswith("local_") == False:
|
|
148
148
|
return ryry_webapi.TaskUpdateProgress(realTaskUUID, progress, json.dumps(data))
|
|
149
149
|
|
|
150
150
|
def timeout_killprocess(proc, timeout): # """超过指定的秒数后杀死进程"""
|
|
@@ -122,76 +122,30 @@ def _can_connect_ftp(ip, port, username, password, writepath):
|
|
|
122
122
|
except Exception as e:
|
|
123
123
|
print(f"Failed to connect to FTP server {ip}:{writepath} {e}")
|
|
124
124
|
return False
|
|
125
|
-
|
|
126
|
-
"host" : "
|
|
125
|
+
ftp_192_168_50_138={
|
|
126
|
+
"host" : "192.168.50.138",
|
|
127
127
|
"port": 21,
|
|
128
128
|
"username" : "admin",
|
|
129
129
|
"password" : "Mecord@2024",
|
|
130
130
|
"writepath" : "mcn/cache",
|
|
131
|
-
"readpath" : "ftp://
|
|
131
|
+
"readpath" : "ftp://192.168.50.138/mcn/cache"
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
"host" : "183.6.
|
|
133
|
+
ftp_183_6_90_205={
|
|
134
|
+
"host" : "183.6.90.205",
|
|
135
135
|
"port": 2121,
|
|
136
136
|
"username" : "admin",
|
|
137
137
|
"password" : "Mecord@2024",
|
|
138
138
|
"writepath" : "mcn/cache",
|
|
139
|
-
"readpath" : "ftp://183.6.
|
|
140
|
-
}
|
|
141
|
-
ftp_192_168_3_220={
|
|
142
|
-
"host": "192.168.3.220",
|
|
143
|
-
"port": 21,
|
|
144
|
-
"username" : "xinyu100",
|
|
145
|
-
"password" : "xinyu100.com",
|
|
146
|
-
"writepath" : "1TB01/data/cache/",
|
|
147
|
-
# "readpath" : "http://192.168.3.220/01/cache"
|
|
148
|
-
"readpath" : "ftp://192.168.3.220/1TB01/data/cache"
|
|
149
|
-
}
|
|
150
|
-
ftp_183_6_90_205={
|
|
151
|
-
"host" : "183.6.90.205",
|
|
152
|
-
"port": 13210,
|
|
153
|
-
"username" : "ftpuser",
|
|
154
|
-
"password" : "ftpuser",
|
|
155
|
-
"writepath" : "cache/",
|
|
156
|
-
"readpath" : "ftp://183.6.90.205:13210/cache"
|
|
157
|
-
}
|
|
158
|
-
ftp_192_168_50_113={
|
|
159
|
-
"host" : "192.168.50.113",
|
|
160
|
-
"port": 21,
|
|
161
|
-
"username" : "ftpuser",
|
|
162
|
-
"password" : "ftpuser",
|
|
163
|
-
"writepath" : "cache/",
|
|
164
|
-
"readpath" : "ftp://192.168.50.113/cache"
|
|
139
|
+
"readpath" : "ftp://183.6.90.205/mcn/cache"
|
|
165
140
|
}
|
|
166
141
|
SUBDOMAIN = {
|
|
167
|
-
"183.6.45.220": [
|
|
168
|
-
ftp_172_16_3_215,
|
|
169
|
-
ftp_183_6_45_220,
|
|
170
|
-
{**ftp_192_168_50_113,"path_replace": [ "/mcn/videos/", "/mcn/" ]},
|
|
171
|
-
{**ftp_183_6_90_205,"path_replace": [ "/mcn/videos/", "/mcn/" ]}
|
|
172
|
-
],
|
|
173
|
-
"172.16.3.215": [
|
|
174
|
-
ftp_172_16_3_215,
|
|
175
|
-
ftp_183_6_45_220,
|
|
176
|
-
{**ftp_192_168_50_113,"path_replace": [ "/mcn/videos/", "/mcn/" ]},
|
|
177
|
-
{**ftp_183_6_90_205,"path_replace": [ "/mcn/videos/", "/mcn/" ]}
|
|
178
|
-
],
|
|
179
|
-
"192.168.50.113": [
|
|
180
|
-
{**ftp_172_16_3_215,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
181
|
-
{**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
182
|
-
ftp_192_168_50_113,
|
|
183
|
-
ftp_183_6_90_205,
|
|
184
|
-
],
|
|
185
142
|
"183.6.90.205": [
|
|
186
|
-
|
|
187
|
-
{**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
188
|
-
ftp_192_168_50_113,
|
|
143
|
+
ftp_192_168_50_138,
|
|
189
144
|
ftp_183_6_90_205,
|
|
190
145
|
],
|
|
191
|
-
"192.168.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
ftp_192_168_3_220
|
|
146
|
+
"192.168.50.138": [
|
|
147
|
+
ftp_192_168_50_138,
|
|
148
|
+
ftp_183_6_90_205,
|
|
195
149
|
]
|
|
196
150
|
}
|
|
197
151
|
|
ryry_cli-2.71/ryry/constant.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|