mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Update create_nightly_json
This commit is contained in:
@@ -13,7 +13,8 @@ def main():
|
|||||||
for x in files_lines:
|
for x in files_lines:
|
||||||
parts = x.split(" ", 1)
|
parts = x.split(" ", 1)
|
||||||
if parts[0]:
|
if parts[0]:
|
||||||
json_str = execute_cli(f"b2 file info {parts[0]}")
|
print(f"Parts[0]: {parts[0]}", flush=True)
|
||||||
|
json_str = execute_cli(f"b2 file info b2://{bucket}/{parts[0]}")
|
||||||
data = json.loads(json_str)
|
data = json.loads(json_str)
|
||||||
name = remove_prefix(data['fileName'], "nightly/")
|
name = remove_prefix(data['fileName'], "nightly/")
|
||||||
url = f"https://f001.backblazeb2.com/file/{bucket}/nightly/{urllib.parse.quote_plus(name)}"
|
url = f"https://f001.backblazeb2.com/file/{bucket}/nightly/{urllib.parse.quote_plus(name)}"
|
||||||
|
|||||||
Reference in New Issue
Block a user