ryry-cli 4.13__tar.gz → 4.14__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-4.13/ryry_cli.egg-info → ryry_cli-4.14}/PKG-INFO +1 -1
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/constant.py +2 -2
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/store.py +3 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/upload.py +7 -7
- {ryry_cli-4.13 → ryry_cli-4.14/ryry_cli.egg-info}/PKG-INFO +1 -1
- {ryry_cli-4.13 → ryry_cli-4.14}/setup.py +1 -1
- {ryry_cli-4.13 → ryry_cli-4.14}/LICENSE +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/README.md +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/__init__.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/daemon_base.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/daemon_manager.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/main.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/ryry_service.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/ryry_widget.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/script_template/daemon.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/script_template/main.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/script_template/run.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/server_func.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/shared_memory.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/task.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/taskUtils.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry/utils.py +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-4.13 → ryry_cli-4.14}/setup.cfg +0 -0
|
@@ -155,11 +155,14 @@ def extend():
|
|
|
155
155
|
_genExtend()
|
|
156
156
|
elif read_data["extend"].get("device_id", "") != read_data.get("deviceInfo", {}).get("device_id", ""):
|
|
157
157
|
_genExtend()
|
|
158
|
+
elif read_data["extend"].get("app", "") == "ryry-cli 4.14":
|
|
159
|
+
_genExtend()
|
|
158
160
|
else:
|
|
159
161
|
_genExtend()
|
|
160
162
|
return GLOBAL_EXT_JSON
|
|
161
163
|
|
|
162
164
|
def _genExtend():
|
|
165
|
+
print("asdasdas _genExtend ")
|
|
163
166
|
sp = Store()
|
|
164
167
|
read_data = sp.read()
|
|
165
168
|
if "deviceInfo" in read_data:
|
|
@@ -191,7 +191,7 @@ def deepFtpUpload(file, new_file_name, ftp, writepath, readpath):
|
|
|
191
191
|
|
|
192
192
|
with open(file, 'rb') as f:
|
|
193
193
|
ftp.storbinary(f'STOR {new_file_name}', f)
|
|
194
|
-
return f"{readpath}/{new_file_name}"
|
|
194
|
+
return f"{readpath}/{writepath}/{new_file_name}"
|
|
195
195
|
|
|
196
196
|
def ftpUpload(file, new_file_name, subdomain, upload_path=""):
|
|
197
197
|
ip = subdomain["host"]
|
|
@@ -214,7 +214,7 @@ def ftpUpload(file, new_file_name, subdomain, upload_path=""):
|
|
|
214
214
|
if upload_path:
|
|
215
215
|
if upload_path[0:1] == "/":
|
|
216
216
|
upload_path = upload_path[1:]
|
|
217
|
-
s = deepFtpUpload(file, new_file_name, ftp, upload_path, f'ftp://{ip}/
|
|
217
|
+
s = deepFtpUpload(file, new_file_name, ftp, upload_path, f'ftp://{ip}/mnt/NAS/mcn')
|
|
218
218
|
else:
|
|
219
219
|
s = deepFtpUpload(file, new_file_name, ftp, writepath, readpath)
|
|
220
220
|
|
|
@@ -228,7 +228,7 @@ def ftpUpload(file, new_file_name, subdomain, upload_path=""):
|
|
|
228
228
|
if upload_path:
|
|
229
229
|
if upload_path[0:1] == "/":
|
|
230
230
|
upload_path = upload_path[1:]
|
|
231
|
-
s = deepFtpUpload(file, new_file_name, ftp, upload_path, f'ftp://{ip}/
|
|
231
|
+
s = deepFtpUpload(file, new_file_name, ftp, upload_path, f'ftp://{ip}/mnt/NAS/mcn')
|
|
232
232
|
else:
|
|
233
233
|
s = deepFtpUpload(file, new_file_name, ftp, writepath, readpath)
|
|
234
234
|
|
|
@@ -263,16 +263,16 @@ ftp_192_168_50_12={
|
|
|
263
263
|
"port": 21,
|
|
264
264
|
"username" : "mcn",
|
|
265
265
|
"password" : "meco@2024+",
|
|
266
|
-
"writepath" : "
|
|
267
|
-
"readpath" : "ftp://192.168.50.12/mnt/NAS/mcn
|
|
266
|
+
"writepath" : "cache",
|
|
267
|
+
"readpath" : "ftp://192.168.50.12/mnt/NAS/mcn"
|
|
268
268
|
}
|
|
269
269
|
ftp_183_6_90_205={
|
|
270
270
|
"host" : "183.6.90.205",
|
|
271
271
|
"port": 2221,
|
|
272
272
|
"username" : "mcn",
|
|
273
273
|
"password" : "meco@2024+",
|
|
274
|
-
"writepath" : "
|
|
275
|
-
"readpath" : "ftp://183.6.90.205/mnt/NAS/mcn
|
|
274
|
+
"writepath" : "cache",
|
|
275
|
+
"readpath" : "ftp://183.6.90.205/mnt/NAS/mcn"
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
from ryry import utils
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|