ryry-cli 2.65__tar.gz → 2.66__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.65 → ryry_cli-2.66}/PKG-INFO +1 -1
- ryry_cli-2.66/ryry/constant.py +4 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/upload.py +22 -6
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.65 → ryry_cli-2.66}/setup.py +1 -1
- ryry_cli-2.65/ryry/constant.py +0 -4
- {ryry_cli-2.65 → ryry_cli-2.66}/LICENSE +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/README.md +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/__init__.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/main.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/server_func.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/store.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/task.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry/utils.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.66}/setup.cfg +0 -0
|
@@ -158,21 +158,31 @@ ftp_192_168_50_113={
|
|
|
158
158
|
SUBDOMAIN = {
|
|
159
159
|
"172.16.3.215": [
|
|
160
160
|
ftp_172_16_3_215,
|
|
161
|
-
ftp_192_168_50_113
|
|
162
|
-
|
|
161
|
+
ftp_192_168_50_113.update({
|
|
162
|
+
"path_replace": [ "/mcn/videos/", "/mcn/" ]
|
|
163
|
+
}),
|
|
164
|
+
ftp_183_6_90_205.update({
|
|
165
|
+
"path_replace": [ "/mcn/videos/", "/mcn/" ]
|
|
166
|
+
})
|
|
163
167
|
],
|
|
164
168
|
"192.168.50.113": [
|
|
165
|
-
ftp_172_16_3_215
|
|
169
|
+
ftp_172_16_3_215.update({
|
|
170
|
+
"path_replace": [ "/mcn/", "/mcn/videos/" ]
|
|
171
|
+
}),
|
|
166
172
|
ftp_192_168_50_113,
|
|
167
173
|
ftp_183_6_90_205,
|
|
168
174
|
],
|
|
169
175
|
"183.6.90.205": [
|
|
170
|
-
ftp_172_16_3_215
|
|
176
|
+
ftp_172_16_3_215.update({
|
|
177
|
+
"path_replace": [ "/mcn/", "/mcn/videos/" ]
|
|
178
|
+
}),
|
|
171
179
|
ftp_192_168_50_113,
|
|
172
180
|
ftp_183_6_90_205,
|
|
173
181
|
],
|
|
174
182
|
"192.168.3.220": [
|
|
175
|
-
ftp_172_16_3_215
|
|
183
|
+
ftp_172_16_3_215.update({
|
|
184
|
+
"path_replace": [ "/mcn/", "/mcn/videos/" ]
|
|
185
|
+
}),
|
|
176
186
|
ftp_192_168_3_220
|
|
177
187
|
]
|
|
178
188
|
}
|
|
@@ -217,11 +227,14 @@ def download(url, saveDir):
|
|
|
217
227
|
password = host_item["password"]
|
|
218
228
|
writepath = host_item["writepath"]
|
|
219
229
|
readpath = host_item["readpath"]
|
|
230
|
+
replace_path = host_item.get("path_replace", [])
|
|
220
231
|
ftp = ftplib.FTP()
|
|
221
232
|
ftp.connect(ip, port, timeout=5)
|
|
222
|
-
ftp.login(username, password)
|
|
233
|
+
ftp.login(username, password)
|
|
223
234
|
|
|
224
235
|
remote_filepath = parsed_url.path[1:]
|
|
236
|
+
if len(replace_path) > 0:
|
|
237
|
+
remote_filepath = remote_filepath.replace(replace_path[0], replace_path[1])
|
|
225
238
|
if "." in urlparser.urlparse(url).path:
|
|
226
239
|
ext = urlparser.urlparse(url).path[urlparser.urlparse(url).path.index("."):]
|
|
227
240
|
savePath = os.path.join(saveDir, f"{name}{ext}")
|
|
@@ -282,11 +295,14 @@ def downloadDir(url, saveDir, useCount=-1, autoDelete=False):
|
|
|
282
295
|
port = host_item["port"]
|
|
283
296
|
username = host_item["username"]
|
|
284
297
|
password = host_item["password"]
|
|
298
|
+
replace_path = host_item.get("path_replace", [])
|
|
285
299
|
ftp = ftplib.FTP()
|
|
286
300
|
ftp.connect(ip, port, timeout=5)
|
|
287
301
|
ftp.login(username, password)
|
|
288
302
|
|
|
289
303
|
remote_filepath = parsed_url.path[1:]
|
|
304
|
+
if len(replace_path) > 0:
|
|
305
|
+
remote_filepath = remote_filepath.replace(replace_path[0], replace_path[1])
|
|
290
306
|
if remote_filepath[-1:] != "/":
|
|
291
307
|
remote_filepath += "/"
|
|
292
308
|
ftp.cwd(remote_filepath)
|
ryry_cli-2.65/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
|
|
File without changes
|