Initial commit
This commit is contained in:
14
tools/tongyi/config.py
Normal file
14
tools/tongyi/config.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# 配置文件
|
||||
|
||||
# User-Agent设置
|
||||
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
|
||||
|
||||
# Cookie设置(可选,如需登录后才能访问的视频)
|
||||
COOKIE = ""
|
||||
|
||||
# 下载配置
|
||||
DOWNLOAD_DIR = "./downloads"
|
||||
CHUNK_SIZE = 1024 * 1024 # 1MB
|
||||
|
||||
# API配置
|
||||
API_URL = "https://api.bilibili.com/x/player/playurl"
|
||||
Reference in New Issue
Block a user