fix: modify_metadata() not work

pass IA keys
pull/475/head
yzqzss 1 year ago committed by Rob Kam
parent c23fc22934
commit 00b47646e8

@ -329,7 +329,15 @@ def upload(wikis, logfile, config={}, uploadeddumps=[]):
print('Waitting for item "%s" to be created... (%s)' % (identifier, retry))
time.sleep(10)
item = get_item(identifier)
item.modify_metadata(md) # update
# Update metadata
r = item.modify_metadata(md,
access_key=ia_keys["access"], secret_key=ia_keys["secret"])
if r.status_code != 200:
print("Error when updating metadata")
print(r.status_code)
print(r.text)
print(
"You can find it in https://archive.org/details/%s"
% (identifier)

Loading…
Cancel
Save