mirror of
https://github.com/saveweb/biliarchiver.git
synced 2024-09-19 11:05:28 -07:00
临时禁用 item.exists
This commit is contained in:
parent
9ffd8d8dab
commit
678b230d1a
@ -34,11 +34,11 @@ def upload_bvid(bvid):
|
||||
item = get_item(identifier)
|
||||
if item.exists:
|
||||
print(f'item {identifier} 已存在(item.exists)')
|
||||
if item.metadata.get("upload-state") == "uploaded":
|
||||
print(f'{identifier} 已经上传过了,跳过(item.metadata.uploaded)')
|
||||
with open(f'{videos_basepath}/{identifier}/_uploaded.mark', 'w', encoding='utf-8') as f:
|
||||
f.write('')
|
||||
continue
|
||||
# if item.metadata.get("upload-state") == "uploaded":
|
||||
# print(f'{identifier} 已经上传过了,跳过(item.metadata.uploaded)')
|
||||
# with open(f'{videos_basepath}/{identifier}/_uploaded.mark', 'w', encoding='utf-8') as f:
|
||||
# f.write('')
|
||||
# continue
|
||||
filedict = {} # "remote filename": "local filename"
|
||||
for filename in os.listdir(f'{videos_basepath}/{identifier}/extra'):
|
||||
file = f'{videos_basepath}/{identifier}/extra/{filename}'
|
||||
|
Loading…
Reference in New Issue
Block a user