From ca23f90ea98e0fe0480dc29dcb2f30a7e0c1cd24 Mon Sep 17 00:00:00 2001 From: Alleria Date: Tue, 11 Feb 2025 15:22:57 +0800 Subject: [PATCH] Update upload_video_to_douyin.py --- examples/upload_video_to_douyin.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/upload_video_to_douyin.py b/examples/upload_video_to_douyin.py index 142f012..cb3cf24 100644 --- a/examples/upload_video_to_douyin.py +++ b/examples/upload_video_to_douyin.py @@ -23,8 +23,9 @@ if __name__ == '__main__': print(f"视频文件名:{file}") print(f"标题:{title}") print(f"Hashtag:{tags}") - if thumbnail_path.exists(): - app = DouYinVideo(title, file, tags, publish_datetimes[index], account_file, thumbnail_path=thumbnail_path) - else: - app = DouYinVideo(title, file, tags, publish_datetimes[index], account_file) - asyncio.run(app.main(), debug=False) \ No newline at end of file + # 暂时没有时间修复封面上传,故先隐藏掉该功能 + # if thumbnail_path.exists(): + # app = DouYinVideo(title, file, tags, publish_datetimes[index], account_file, thumbnail_path=thumbnail_path) + # else: + app = DouYinVideo(title, file, tags, publish_datetimes[index], account_file) + asyncio.run(app.main(), debug=False)