feat: complete local version to overwrite remote

This commit is contained in:
DelLevin-Home
2026-06-16 03:30:57 +08:00
parent 1735c19f48
commit 3c78293f4d
129 changed files with 22814 additions and 0 deletions

23
flask-dev-api/config.py Normal file
View File

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
"""
全局配置集中管理
"""
import os
# 基础目录
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# ==================== down-video 视频下载 ====================
TWITTER_COOKIE = os.path.join(BASE_DIR, "config", "dv_cookies", "x.com_cookies.txt")
BILIBILI_COOKIE = os.path.join(BASE_DIR, "config", "dv_cookies", "bilibili.com_cookies.txt")
INSTAGRAM_COOKIE = os.path.join(BASE_DIR, "config", "dv_cookies", "instagram.com_cookies.txt")
YOUTUBE_COOKIE = os.path.join(BASE_DIR, "config", "dv_cookies", "youtube.com_cookies.txt")
# 默认下载目录
DEFAULT_OUTPUT_DIR = r"D:\UserData\Desktop\xiazai"
# 默认代理端口
PROXY_URL = "socks5://127.0.0.1:10808"
# ==================== fen-ci 分词 ====================
JIEBA_DICT_FILE = os.path.join(BASE_DIR, 'config', 'fen_ci', 'jieba.txt')
TOKEN_FILE_PATH = os.path.join(BASE_DIR, 'config', 'fen_ci', 'usertoken.json')
# ==================== 服务端口 ====================
PORT = 5000