1. add kuaishou uploader
2. refactor the code
This commit is contained in:
@@ -2,14 +2,14 @@ import asyncio
|
||||
from pathlib import Path
|
||||
|
||||
from conf import BASE_DIR
|
||||
from tencent_uploader.main import weixin_setup, TencentVideo
|
||||
from uploader.tencent_uploader.main import weixin_setup, TencentVideo
|
||||
from utils.constant import TencentZoneTypes
|
||||
from utils.files_times import generate_schedule_time_next_day, get_title_and_hashtags
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
filepath = Path(BASE_DIR) / "videos"
|
||||
account_file = Path(BASE_DIR / "tencent_uploader" / "account.json")
|
||||
account_file = Path(BASE_DIR / "cookies" / "tencent_uploader" / "account.json")
|
||||
# 获取视频目录
|
||||
folder_path = Path(filepath)
|
||||
# 获取文件夹中的所有文件
|
||||
|
||||
Reference in New Issue
Block a user