ryry-cli 2.65__tar.gz → 2.67__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.67}/PKG-INFO +1 -1
- ryry_cli-2.67/ryry/constant.py +4 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/upload.py +30 -6
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.65 → ryry_cli-2.67}/setup.py +1 -1
- ryry_cli-2.65/ryry/constant.py +0 -4
- {ryry_cli-2.65 → ryry_cli-2.67}/LICENSE +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/README.md +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/__init__.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/main.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/server_func.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/store.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/task.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry/utils.py +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.65 → ryry_cli-2.67}/setup.cfg +0 -0
|
@@ -130,6 +130,14 @@ ftp_172_16_3_215={
|
|
|
130
130
|
"writepath" : "mcn/cache",
|
|
131
131
|
"readpath" : "ftp://172.16.3.215/mcn/cache"
|
|
132
132
|
}
|
|
133
|
+
ftp_183_6_45_220={
|
|
134
|
+
"host" : "183.6.45.220",
|
|
135
|
+
"port": 2121,
|
|
136
|
+
"username" : "admin",
|
|
137
|
+
"password" : "Mecord@2024",
|
|
138
|
+
"writepath" : "mcn/cache",
|
|
139
|
+
"readpath" : "ftp://183.6.45.220/mcn/cache"
|
|
140
|
+
}
|
|
133
141
|
ftp_192_168_3_220={
|
|
134
142
|
"host": "192.168.3.220",
|
|
135
143
|
"port": 21,
|
|
@@ -156,23 +164,33 @@ ftp_192_168_50_113={
|
|
|
156
164
|
"readpath" : "ftp://192.168.50.113/cache"
|
|
157
165
|
}
|
|
158
166
|
SUBDOMAIN = {
|
|
167
|
+
"183.6.45.220:2121": [
|
|
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
|
+
],
|
|
159
173
|
"172.16.3.215": [
|
|
160
174
|
ftp_172_16_3_215,
|
|
161
|
-
|
|
162
|
-
|
|
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/" ]}
|
|
163
178
|
],
|
|
164
179
|
"192.168.50.113": [
|
|
165
|
-
ftp_172_16_3_215,
|
|
180
|
+
{**ftp_172_16_3_215,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
181
|
+
{**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
166
182
|
ftp_192_168_50_113,
|
|
167
183
|
ftp_183_6_90_205,
|
|
168
184
|
],
|
|
169
185
|
"183.6.90.205": [
|
|
170
|
-
ftp_172_16_3_215,
|
|
186
|
+
{**ftp_172_16_3_215,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
187
|
+
{**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
171
188
|
ftp_192_168_50_113,
|
|
172
189
|
ftp_183_6_90_205,
|
|
173
190
|
],
|
|
174
191
|
"192.168.3.220": [
|
|
175
|
-
ftp_172_16_3_215,
|
|
192
|
+
{**ftp_172_16_3_215,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
193
|
+
{**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
|
|
176
194
|
ftp_192_168_3_220
|
|
177
195
|
]
|
|
178
196
|
}
|
|
@@ -217,11 +235,14 @@ def download(url, saveDir):
|
|
|
217
235
|
password = host_item["password"]
|
|
218
236
|
writepath = host_item["writepath"]
|
|
219
237
|
readpath = host_item["readpath"]
|
|
238
|
+
replace_path = host_item.get("path_replace", [])
|
|
220
239
|
ftp = ftplib.FTP()
|
|
221
240
|
ftp.connect(ip, port, timeout=5)
|
|
222
|
-
ftp.login(username, password)
|
|
241
|
+
ftp.login(username, password)
|
|
223
242
|
|
|
224
243
|
remote_filepath = parsed_url.path[1:]
|
|
244
|
+
if len(replace_path) > 0:
|
|
245
|
+
remote_filepath = remote_filepath.replace(replace_path[0], replace_path[1])
|
|
225
246
|
if "." in urlparser.urlparse(url).path:
|
|
226
247
|
ext = urlparser.urlparse(url).path[urlparser.urlparse(url).path.index("."):]
|
|
227
248
|
savePath = os.path.join(saveDir, f"{name}{ext}")
|
|
@@ -282,11 +303,14 @@ def downloadDir(url, saveDir, useCount=-1, autoDelete=False):
|
|
|
282
303
|
port = host_item["port"]
|
|
283
304
|
username = host_item["username"]
|
|
284
305
|
password = host_item["password"]
|
|
306
|
+
replace_path = host_item.get("path_replace", [])
|
|
285
307
|
ftp = ftplib.FTP()
|
|
286
308
|
ftp.connect(ip, port, timeout=5)
|
|
287
309
|
ftp.login(username, password)
|
|
288
310
|
|
|
289
311
|
remote_filepath = parsed_url.path[1:]
|
|
312
|
+
if len(replace_path) > 0:
|
|
313
|
+
remote_filepath = remote_filepath.replace(replace_path[0], replace_path[1])
|
|
290
314
|
if remote_filepath[-1:] != "/":
|
|
291
315
|
remote_filepath += "/"
|
|
292
316
|
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
|