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"视频文件名:{file}")
print(f"标题:{title}") print(f"标题:{title}")
print(f"Hashtag:{tags}") print(f"Hashtag:{tags}")
if thumbnail_path.exists(): # 暂时没有时间修复封面上传,故先隐藏掉该功能
app = DouYinVideo(title, file, tags, publish_datetimes[index], account_file, thumbnail_path=thumbnail_path) # if thumbnail_path.exists():
else: # app = DouYinVideo(title, file, tags, publish_datetimes[index], account_file, thumbnail_path=thumbnail_path)
app = DouYinVideo(title, file, tags, publish_datetimes[index], account_file) # else:
asyncio.run(app.main(), debug=False) app = DouYinVideo(title, file, tags, publish_datetimes[index], account_file)
asyncio.run(app.main(), debug=False)