generated from dellevin/template
24 lines
982 B
Python
24 lines
982 B
Python
# -*- 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
|