fix: 将所有后端文件都迁移到 sau_backend 文件夹内
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
|
||||
from conf import BASE_DIR
|
||||
|
||||
SOCIAL_MEDIA_DOUYIN = "douyin"
|
||||
SOCIAL_MEDIA_TENCENT = "tencent"
|
||||
SOCIAL_MEDIA_TIKTOK = "tiktok"
|
||||
SOCIAL_MEDIA_BILIBILI = "bilibili"
|
||||
SOCIAL_MEDIA_KUAISHOU = "kuaishou"
|
||||
|
||||
|
||||
def get_supported_social_media() -> List[str]:
|
||||
return [SOCIAL_MEDIA_DOUYIN, SOCIAL_MEDIA_TENCENT, SOCIAL_MEDIA_TIKTOK, SOCIAL_MEDIA_KUAISHOU]
|
||||
|
||||
|
||||
def get_cli_action() -> List[str]:
|
||||
return ["upload", "login", "watch"]
|
||||
|
||||
|
||||
async def set_init_script(context):
|
||||
stealth_js_path = Path(BASE_DIR / "utils/stealth.min.js")
|
||||
await context.add_init_script(path=stealth_js_path)
|
||||
return context
|
||||
Reference in New Issue
Block a user