From f601bee92fcb088955cd07f7d4fb1b97b36d052b Mon Sep 17 00:00:00 2001 From: yzqzss Date: Thu, 27 Jul 2023 01:46:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=85=E5=9C=A8=E5=88=86P=E5=9D=87?= =?UTF-8?q?=E8=A2=AB=E4=B8=8B=E8=BD=BD=E5=90=8E=E6=89=8D=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biliarchiver/_biliarchiver_upload_bvid.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/biliarchiver/_biliarchiver_upload_bvid.py b/biliarchiver/_biliarchiver_upload_bvid.py index 80d1bd4..9c383ec 100644 --- a/biliarchiver/_biliarchiver_upload_bvid.py +++ b/biliarchiver/_biliarchiver_upload_bvid.py @@ -39,6 +39,10 @@ def _upload_bvid(bvid: str, *, update_existing: bool = False, collection: str): if os.path.exists(OLD_videos_basepath): print(f'检测到旧的视频主目录 {OLD_videos_basepath},将其重命名为 {videos_basepath}...') os.rename(OLD_videos_basepath, videos_basepath) + + if not (videos_basepath / "_all_downloaded.mark").exists(): + print(f'{bvid} 还没有下载完成全部分P,跳过') + return if not os.path.exists(videos_basepath): raise VideosBasePathNotFoundError(f'{videos_basepath}') @@ -48,7 +52,7 @@ def _upload_bvid(bvid: str, *, update_existing: bool = False, collection: str): print(f'{local_identifier} => {remote_identifier} 已经上传过了(_uploaded.mark)') continue if local_identifier.startswith('_') : - print(f'跳过 {local_identifier}') + print(f'跳过带 _ 前缀的 local_identifier: {local_identifier}') continue if not local_identifier.startswith(BILIBILI_IDENTIFIER_PERFIX): print(f'{local_identifier} 不是以 {BILIBILI_IDENTIFIER_PERFIX} 开头的正确 local_identifier')