ryry-cli 2.66__tar.gz → 2.68__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.
Files changed (28) hide show
  1. {ryry_cli-2.66 → ryry_cli-2.68}/PKG-INFO +1 -1
  2. ryry_cli-2.68/ryry/constant.py +4 -0
  3. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/upload.py +27 -19
  4. {ryry_cli-2.66 → ryry_cli-2.68}/ryry_cli.egg-info/PKG-INFO +1 -1
  5. {ryry_cli-2.66 → ryry_cli-2.68}/setup.py +1 -1
  6. ryry_cli-2.66/ryry/constant.py +0 -4
  7. {ryry_cli-2.66 → ryry_cli-2.68}/LICENSE +0 -0
  8. {ryry_cli-2.66 → ryry_cli-2.68}/README.md +0 -0
  9. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/__init__.py +0 -0
  10. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/main.py +0 -0
  11. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/ryry_server_socket.py +0 -0
  12. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/ryry_service.py +0 -0
  13. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/ryry_webapi.py +0 -0
  14. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/ryry_widget.py +0 -0
  15. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/script_template/__init__.py +0 -0
  16. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/script_template/main.py +0 -0
  17. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/script_template/run.py +0 -0
  18. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/server_func.py +0 -0
  19. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/store.py +0 -0
  20. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/task.py +0 -0
  21. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/taskUtils.py +0 -0
  22. {ryry_cli-2.66 → ryry_cli-2.68}/ryry/utils.py +0 -0
  23. {ryry_cli-2.66 → ryry_cli-2.68}/ryry_cli.egg-info/SOURCES.txt +0 -0
  24. {ryry_cli-2.66 → ryry_cli-2.68}/ryry_cli.egg-info/dependency_links.txt +0 -0
  25. {ryry_cli-2.66 → ryry_cli-2.68}/ryry_cli.egg-info/entry_points.txt +0 -0
  26. {ryry_cli-2.66 → ryry_cli-2.68}/ryry_cli.egg-info/requires.txt +0 -0
  27. {ryry_cli-2.66 → ryry_cli-2.68}/ryry_cli.egg-info/top_level.txt +0 -0
  28. {ryry_cli-2.66 → ryry_cli-2.68}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.66
3
+ Version: 2.68
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -0,0 +1,4 @@
1
+ #!!!!! do not change this file !!!!!
2
+ app_version="2.68"
3
+ app_bulld_anchor="Noh_2024-11-01 17:05:45.402867"
4
+ app_name="ryry-cli"
@@ -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,33 +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
- 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
- })
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/" ]}
167
178
  ],
168
179
  "192.168.50.113": [
169
- ftp_172_16_3_215.update({
170
- "path_replace": [ "/mcn/", "/mcn/videos/" ]
171
- }),
180
+ {**ftp_172_16_3_215,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
181
+ {**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
172
182
  ftp_192_168_50_113,
173
183
  ftp_183_6_90_205,
174
184
  ],
175
185
  "183.6.90.205": [
176
- ftp_172_16_3_215.update({
177
- "path_replace": [ "/mcn/", "/mcn/videos/" ]
178
- }),
186
+ {**ftp_172_16_3_215,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
187
+ {**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
179
188
  ftp_192_168_50_113,
180
189
  ftp_183_6_90_205,
181
190
  ],
182
191
  "192.168.3.220": [
183
- ftp_172_16_3_215.update({
184
- "path_replace": [ "/mcn/", "/mcn/videos/" ]
185
- }),
192
+ {**ftp_172_16_3_215,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
193
+ {**ftp_183_6_45_220,"path_replace": [ "/mcn/", "/mcn/videos/" ]},
186
194
  ftp_192_168_3_220
187
195
  ]
188
196
  }
@@ -232,9 +240,9 @@ def download(url, saveDir):
232
240
  ftp.connect(ip, port, timeout=5)
233
241
  ftp.login(username, password)
234
242
 
235
- remote_filepath = parsed_url.path[1:]
236
243
  if len(replace_path) > 0:
237
- remote_filepath = remote_filepath.replace(replace_path[0], replace_path[1])
244
+ parsed_url = urlparse(url.replace(replace_path[0], replace_path[1]))
245
+ remote_filepath = parsed_url.path[1:]
238
246
  if "." in urlparser.urlparse(url).path:
239
247
  ext = urlparser.urlparse(url).path[urlparser.urlparse(url).path.index("."):]
240
248
  savePath = os.path.join(saveDir, f"{name}{ext}")
@@ -300,9 +308,9 @@ def downloadDir(url, saveDir, useCount=-1, autoDelete=False):
300
308
  ftp.connect(ip, port, timeout=5)
301
309
  ftp.login(username, password)
302
310
 
303
- remote_filepath = parsed_url.path[1:]
304
311
  if len(replace_path) > 0:
305
- remote_filepath = remote_filepath.replace(replace_path[0], replace_path[1])
312
+ parsed_url = urlparse(url.replace(replace_path[0], replace_path[1]))
313
+ remote_filepath = parsed_url.path[1:]
306
314
  if remote_filepath[-1:] != "/":
307
315
  remote_filepath += "/"
308
316
  ftp.cwd(remote_filepath)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.66
3
+ Version: 2.68
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -3,7 +3,7 @@ import os
3
3
  import subprocess
4
4
  import datetime
5
5
 
6
- ryry_version = "2.66"
6
+ ryry_version = "2.68"
7
7
  cur_dir = os.path.dirname(os.path.abspath(__file__))
8
8
  constanspy = os.path.join(cur_dir, "ryry", "constant.py")
9
9
  try:
@@ -1,4 +0,0 @@
1
- #!!!!! do not change this file !!!!!
2
- app_version="2.66"
3
- app_bulld_anchor="Noh_2024-11-01 16:13:08.797316"
4
- app_name="ryry-cli"
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