ryry-cli 2.39__tar.gz → 2.40__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.39 → ryry_cli-2.40}/PKG-INFO +1 -1
- ryry_cli-2.40/ryry/constant.py +5 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/upload.py +5 -1
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.39 → ryry_cli-2.40}/setup.py +1 -1
- ryry_cli-2.39/ryry/constant.py +0 -5
- {ryry_cli-2.39 → ryry_cli-2.40}/LICENSE +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/README.md +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/__init__.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/main.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/server_func.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/store.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/task.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry/utils.py +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.39 → ryry_cli-2.40}/setup.cfg +0 -0
|
@@ -180,6 +180,7 @@ def download(url, saveDir):
|
|
|
180
180
|
savePath = os.path.join(saveDir, f"{name}{ext}")
|
|
181
181
|
with open(savePath, 'wb') as f:
|
|
182
182
|
ftp.retrbinary(f'RETR {remote_filepath}', f.write)
|
|
183
|
+
return savePath
|
|
183
184
|
else:
|
|
184
185
|
if remote_filepath[-1:] != "/":
|
|
185
186
|
remote_filepath += "/"
|
|
@@ -190,6 +191,7 @@ def download(url, saveDir):
|
|
|
190
191
|
savePath = os.path.join(saveDir, f"{name}_{random_file}")
|
|
191
192
|
with open(savePath, 'wb') as f:
|
|
192
193
|
ftp.retrbinary(f'RETR {random_file}', f.write)
|
|
194
|
+
return savePath
|
|
193
195
|
ftp.quit()
|
|
194
196
|
else:
|
|
195
197
|
print(f"download fail: domain {host} not support")
|
|
@@ -200,6 +202,8 @@ def download(url, saveDir):
|
|
|
200
202
|
s.headers.update({'Connection':'close'})
|
|
201
203
|
ua = UserAgent()
|
|
202
204
|
file = s.get(url, verify=False, headers={'User-Agent': ua.random}, timeout=30)
|
|
205
|
+
ext = urlparser.urlparse(url).path[urlparser.urlparse(url).path.index("."):]
|
|
206
|
+
savePath = os.path.join(saveDir, f"{name}{ext}")
|
|
203
207
|
if os.path.exists(savePath):
|
|
204
208
|
os.remove(savePath)
|
|
205
209
|
with open(savePath, "wb") as c:
|
|
@@ -216,4 +220,4 @@ def download(url, saveDir):
|
|
|
216
220
|
return None
|
|
217
221
|
|
|
218
222
|
# url = upload("D:\\0505.mp4", "111", 300)
|
|
219
|
-
# download("ftp://192.168.3.220/1TB01/data/mcn/
|
|
223
|
+
# download("ftp://192.168.3.220/1TB01/data/mcn/digital_male_1", "E:\\semi-automatic_mixed_video-main\\task_system\\widget\\gen_template_video\\.temp")
|
|
@@ -3,7 +3,7 @@ import os
|
|
|
3
3
|
import subprocess
|
|
4
4
|
import datetime
|
|
5
5
|
|
|
6
|
-
ryry_version = "2.
|
|
6
|
+
ryry_version = "2.40"
|
|
7
7
|
ryry_build_number = int(ryry_version.replace(".",""))
|
|
8
8
|
cur_dir = os.path.dirname(os.path.abspath(__file__))
|
|
9
9
|
constanspy = os.path.join(cur_dir, "ryry", "constant.py")
|
ryry_cli-2.39/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
|