1. 统一命名thumbnail

2. 更换完成定位
This commit is contained in:
pookz@stme
2024-08-23 15:14:37 +08:00
parent 57eda1b7fd
commit cd1a82fbb9
2 changed files with 12 additions and 8 deletions
+5 -1
View File
@@ -18,9 +18,13 @@ if __name__ == '__main__':
cookie_setup = asyncio.run(douyin_setup(account_file, handle=False))
for index, file in enumerate(files):
title, tags = get_title_and_hashtags(str(file))
thumbnail_path = file.with_suffix('.png')
# 打印视频文件名、标题和 hashtag
print(f"视频文件名:{file}")
print(f"标题:{title}")
print(f"Hashtag:{tags}")
app = DouYinVideo(title, file, tags, publish_datetimes[index], account_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)