Files
re-xxm/config.example.json
T
kairee aa9aa7c589 feat(classify): gate loose re token, non-linear negatives, drop 纯享/转场
reaction 词表用 re|reaction|反应 但须与咻咻满或充电同现,兼容 reactio/reation 等拼写又避免通用词加分;负向改为每词 -2 且命中多条额外叠加(k*(k-1)),日期 -4;纯享(误伤纯享受)移出负向,转场移出正向。库内 796 条有效视频复测:线以下由 14 降至 8。
2026-11-01 19:18:20 +08:00

115 lines
2.7 KiB
JSON

{
"bilibili": {
"read": {
"mid": 0,
"csrf": "从 read 账号 cookie 中的 bili_jct 取值",
"cookie": "只读账号的完整 Cookie(需含 SESSDATA、bili_jct、DedeUserID 等)"
},
"write": {
"mid": 0,
"csrf": "从 write 账号 cookie 中的 bili_jct 取值",
"cookie": "写入账号的完整 Cookie(仅用于 favsort.py 收藏夹重排序)"
}
},
"overrides": {},
"sleep": {
"min": 2.5,
"max": 7.5,
"long_every_min": 20,
"long_every_max": 40,
"long_min": 30,
"long_max": 90,
"retry_wait": 45
},
"telegram": {
"enabled": false,
"bot_token": "replace-with-telegram-bot-token",
"chat_id": 0
},
"web": {
"host": "127.0.0.1",
"port": 8080,
"auth_token": "replace-with-a-long-random-token",
"public_base_url": "",
"track": {
"enabled": true,
"header_order": ["X-Real-IP", "X-Forwarded-For"],
"trusted_proxies": [
"127.0.0.0/8",
"::1/128",
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16",
"169.254.0.0/16",
"fc00::/7",
"fe80::/10"
],
"count_bots": false,
"flush_seconds": 60,
"keep_days": 180,
"max_hits_per_ip_path_per_day": 0
}
},
"storage": {
"database_path": "data/app.db",
"backup_dir": "data/backup",
"backup_keep_days": 14
},
"folders": [
{ "year": 2025, "media_id": 4451053851, "title": "咻咻满-reaction-2025" },
{ "year": 2026, "media_id": 3700023351, "title": "咻咻满 reaction 合集" }
],
"track_fans": [37754047],
"up_blacklist_seed": [
261052419,
1908537643,
1701121088,
542262,
376316958,
145178393,
66389997,
293976264,
3026109
],
"schedule": {
"discover_minutes": 60,
"snapshot_at": "00:01",
"candidate_ttl_days": 7
},
"discover": {
"keywords": ["咻咻满"],
"pages": 3,
"window_days": 7
},
"notify": {
"min_score": 4,
"max_items_per_message": 10
},
"classify": {
"require_title": "咻咻满",
"self_mid": 37754047,
"reaction": ["re", "reaction", "反应"],
"charge": ["加急", "特急", "充电", "专场"],
"weak_positive": ["双人", "路人", "第一次", "首次"],
"negative": ["歌切", "切片", "搬运", "完整版", "录播", "录像"],
"date_negative": true,
"duration_boost": { "gt_30min": 1, "gt_60min": 2 }
},
"heat_weights": {
"view": 0.3,
"like": 0.2,
"coin": 0.2,
"favorite": 0.15,
"share": 0.1,
"reply": 0.03,
"danmaku": 0.02
},
"analytics": {
"min_duration_seconds": 600,
"maturity_days": 2,
"min_view_for_ranking": 2000,
"video_shrink_minutes": 60,
"shrink_minutes": null
}
}