mirror of
https://github.com/saveweb/biliarchiver.git
synced 2024-09-19 19:15:27 -07:00
item.exists 时写 _uploaded.mark
This commit is contained in:
parent
f53dcd8f3c
commit
aa5537a1e5
@ -36,6 +36,8 @@ def upload_bvid(bvid):
|
||||
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
|
||||
filedict = {} # "remote filename": "local filename"
|
||||
for filename in os.listdir(f'{videos_basepath}/{identifier}'):
|
||||
|
Loading…
Reference in New Issue
Block a user