mirror of
https://github.com/saveweb/biliarchiver.git
synced 2024-09-19 19:15:27 -07:00
_all_downloaded.mark
This commit is contained in:
parent
aa5537a1e5
commit
914819cddd
@ -47,6 +47,9 @@ async def archive_bvid(d: DownloaderBilibili, bvid: str):
|
||||
# d.update_cookies_from_browser('firefox')
|
||||
|
||||
videos_basepath = f'biliup/videos/{bvid}'
|
||||
if os.path.exists(f'{videos_basepath}/_all_downloaded.mark'):
|
||||
print(f'{bvid} 所有分p都已下载过了')
|
||||
return
|
||||
videos_info = await api.get_video_info(d.client, url)
|
||||
os.makedirs(videos_basepath, exist_ok=True)
|
||||
|
||||
@ -110,6 +113,8 @@ async def archive_bvid(d: DownloaderBilibili, bvid: str):
|
||||
|
||||
async with aiofiles.open(f'{video_basepath}/_downloaded.mark', 'w', encoding='utf-8') as f:
|
||||
await f.write('')
|
||||
async with aiofiles.open(f'{videos_basepath}/_all_downloaded.mark', 'w', encoding='utf-8') as f:
|
||||
await f.write('')
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user