Update upload_video_to_douyin.py

This commit is contained in:
Alleria
2025-02-11 15:22:57 +08:00
committed by GitHub
parent 12b8baa135
commit ca23f90ea9
+6 -5
View File
@@ -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)
# 暂时没有时间修复封面上传,故先隐藏掉该功能
# 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)