ryry-cli 2.67__tar.gz → 2.69__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.67 → ryry_cli-2.69}/PKG-INFO +1 -1
- ryry_cli-2.69/ryry/constant.py +4 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/upload.py +6 -6
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.67 → ryry_cli-2.69}/setup.py +1 -1
- ryry_cli-2.67/ryry/constant.py +0 -4
- {ryry_cli-2.67 → ryry_cli-2.69}/LICENSE +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/README.md +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/__init__.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/main.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/server_func.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/store.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/task.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry/utils.py +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.67 → ryry_cli-2.69}/setup.cfg +0 -0
|
@@ -189,8 +189,8 @@ SUBDOMAIN = {
|
|
|
189
189
|
ftp_183_6_90_205,
|
|
190
190
|
],
|
|
191
191
|
"192.168.3.220": [
|
|
192
|
-
{**ftp_172_16_3_215,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
193
|
-
{**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
192
|
+
{**ftp_172_16_3_215,"path_replace": [ "/1TB01/data/mcn/", "/mcn/videos/" ]},
|
|
193
|
+
{**ftp_183_6_45_220,"path_replace": [ "/1TB01/data/mcn/", "/mcn/videos/" ]},
|
|
194
194
|
ftp_192_168_3_220
|
|
195
195
|
]
|
|
196
196
|
}
|
|
@@ -240,9 +240,9 @@ def download(url, saveDir):
|
|
|
240
240
|
ftp.connect(ip, port, timeout=5)
|
|
241
241
|
ftp.login(username, password)
|
|
242
242
|
|
|
243
|
-
remote_filepath = parsed_url.path[1:]
|
|
244
243
|
if len(replace_path) > 0:
|
|
245
|
-
|
|
244
|
+
parsed_url = urlparse(url.replace(replace_path[0], replace_path[1]))
|
|
245
|
+
remote_filepath = parsed_url.path[1:]
|
|
246
246
|
if "." in urlparser.urlparse(url).path:
|
|
247
247
|
ext = urlparser.urlparse(url).path[urlparser.urlparse(url).path.index("."):]
|
|
248
248
|
savePath = os.path.join(saveDir, f"{name}{ext}")
|
|
@@ -308,9 +308,9 @@ def downloadDir(url, saveDir, useCount=-1, autoDelete=False):
|
|
|
308
308
|
ftp.connect(ip, port, timeout=5)
|
|
309
309
|
ftp.login(username, password)
|
|
310
310
|
|
|
311
|
-
remote_filepath = parsed_url.path[1:]
|
|
312
311
|
if len(replace_path) > 0:
|
|
313
|
-
|
|
312
|
+
parsed_url = urlparse(url.replace(replace_path[0], replace_path[1]))
|
|
313
|
+
remote_filepath = parsed_url.path[1:]
|
|
314
314
|
if remote_filepath[-1:] != "/":
|
|
315
315
|
remote_filepath += "/"
|
|
316
316
|
ftp.cwd(remote_filepath)
|
ryry_cli-2.67/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
|