Commit Graph

58 Commits

Author SHA1 Message Date
eric
acbf167ebe feat(ops): Umami/ntfy/DNS 运维控制台页面与 API 2026-08-15 23:49:11 -05:00
eric
744a35fbbd feat(test1): 新增 /clash 页托管 Clash Verge 与 clash.yaml
从 GitHub 同步 Win x64 安装包到 S3,并提供配置下载与同步 API。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 09:31:01 -05:00
eric
0c3fc9f68e fix(test1): X立即取样提示区分「今日已取样」与真无候选
当前在播房同日去重后返回 all_deduped,不再误报 no_candidates。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 08:37:31 -05:00
eric
b0706b351b feat(test1): X 按账号隔离展示任务与切片数据
切换顶部账号后,任务流/结果/统计与切片列表按该账号过滤;新建任务写入 account。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 08:29:17 -05:00
eric
4d85eb6f8d fix(test1): 发帖文案严格使用用户模板,禁止擅自改成直播间文案
发帖时按当前模板重算;去掉强行追加「直播精彩瞬间」的逻辑。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 08:19:49 -05:00
eric
f226fb87ce fix(test1): 短文案重试时补后缀,避免覆盖自定义模板
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 08:14:21 -05:00
eric
e0d4a95c0c fix(test1): 放宽短中文文案校验,短主播名自动补后缀
「小夏妹妹」等短名不再被误判正文过短;默认模板改为带「直播精彩瞬间」。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 08:12:58 -05:00
eric
ba2ab0400a fix(test1): X发帖媒体改为后台下载,失败不再删S3
content script 在 x.com 上 fetch S3 会 Failed to fetch;改走 background host_permissions,且 failed 任务保留媒体以便重试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 08:07:27 -05:00
eric
0e80a5faa1 feat(test1): X 直播切片自动文字+视频发帖(独立流水线)
取样录制 10-15s、S3 暂存、插件 engage.post;与 Shorts/TikTok 表与配额隔离。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 07:57:35 -05:00
eric
f3860cc3ee feat(test1): X发帖支持文字+视频,媒体经S3中转发完删除
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 07:29:44 -05:00
eric
ec3cfc2c27 feat(test1): 下载页 — Chrome与最新插件托管到S3
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 06:30:00 -05:00
eric
b59c39d4b8 feat(test1): 时间轴/场次深链/按房时长/盯梢推荐/配额预演/X结果
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 04:59:15 -05:00
eric
e08db6aa74 feat(test1): 功能优化首批 — 配额可配、失败归因、成片质检、TikTok补量与跨平台标签
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 04:50:28 -05:00
eric
9fbf5ec04a fix: 从 TikTok @主页抓取完整头像与粉丝/视频数
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 03:19:18 -05:00
eric
60054cd188 feat: TikTok 账号拉取头像昵称粉丝等资料并落库/S3展示
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 03:15:49 -05:00
eric
70fc686ddf feat: X 插件任务通道 poll 演进为 WebSocket
Web 下发即时推送;插件断线自动重连,HTTP poll 仅作兜底。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 01:32:13 -05:00
eric
57690bd286 feat: Web /x 控制台下发任务,插件自动配对领取执行
插件 X popup 保持可独立运行;打开本站即可自动配对,无需手填 Token。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 00:14:25 -05:00
eric
9806ed3a0a feat: X2 推送接入 API 与 /x 实时看板
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 23:39:41 -05:00
eric
c258cb40af fix: TikTok 配额改为软目标,仅官方限流提示并每小时试传解除
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 22:00:33 -05:00
eric
952e90cc54 fix: TikTok 日上传配额按官方 Direct Post 约 15 条/账号
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:57:10 -05:00
eric
f76c5a326f fix: 修复抖音短录 ffmpeg reconnect 参数导致 Invalid argument
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:41:32 -05:00
eric
45c2437a0e feat: TikTok 上传支持按账号可选 SOCKS 静态住宅 IP
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:40:48 -05:00
eric
e2f03e4082 feat: 抖音取样录制对齐 DouyinLiveRecorder 多线探测与 ffmpeg 重连
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:33:22 -05:00
eric
7cf6d02ff3 fix: TikTok 录制刷新直播流并重试,确认上传可选账号
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:21:48 -05:00
eric
9833891cf4 fix: TikTok 上传确认弹窗与任务流水显示素材时长
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:11:12 -05:00
eric
21f74cb85c fix: TikTok 文案只用标题模板原文,取样最短 1 分钟
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 20:33:24 -05:00
eric
4c8eafacb3 feat: TikTok Cookie 按账号计时,并支持多账号独立会话
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 13:19:06 -05:00
eric
dcead62399 fix: TikTok 2158 限流时给出明确提示,避免连点加重封禁
账号因短时间大量发布被 TikTok 拒绝,错误改为中文说明并要求等待。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 11:56:13 -05:00
eric
dfdd2c539c fix: 禁止 TikTok 同一成片被回收任务反复重发
回收卡住上传误用了录制 started_at,刚开始上传就会被打回 scheduled 再发一次。改为只看上传租约,超时直接失败,并关掉自动重试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 11:52:06 -05:00
eric
43d1542234 fix: 立即取样只录抖音在播切片,不再依赖频道或 Cookie
入队改用当天日期,频道可空;Cookie/YouTube 授权只在上传时检查。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 11:46:05 -05:00
eric
7f4a1de2c4 fix: Shorts/TikTok 立即取样从当前抖音在播立刻开录
手动取样不再只入队 1 条、也不再被 YouTube 上传配额拦住;点击后按在播直播间创建任务并马上开始录制。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 11:40:12 -05:00
eric
c7a7275229 fix: TikTok 发布成功后正确记为已上传,并禁止并发重复上传
vendor 的 upload_video 成功后没有 return True,被误判失败;同时立即上传会抢正在上传的任务导致重复发布。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 11:31:31 -05:00
eric
0815e05094 fix: TikTok 上传自动探测 tt-target-idc,避免 KeyError project
Cookie 有效但默认机房 useast2a 会导致 project/create 返回 status_code=8。上传前探测可用机房并写回 Cookie。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 11:22:56 -05:00
eric
1515783760 fix: TikTok Cookie 上传不再依赖 undetected_chromedriver
Cookie 路径直接 import tiktok.upload_video,vendor 补丁将 Browser 改为 login 内 lazy import,避免服务器缺 Chrome 驱动导致上传失败。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 10:56:19 -05:00
eric
9b9fb57491 fix: TikTok 立即上传允许卡住的 uploading 任务强制重试
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 10:48:35 -05:00
eric
d8fdeaa71c TikTok: Cookie 上传(TiktokAutoUploader),替代开发者 OAuth
账号粘贴 sessionid 即可上传;TikTok 模块独立,默认关闭不影响监控/Shorts。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 10:16:20 -05:00
eric
01c6bf4507 Shorts: SOCKS 代理、OAuth Client 分桶配额、频道级联清理;更新 README
取消本地上传拦截,按 A/B/C/D Client 独立展示配额;新增 SOCKS5 上传代理与删频道级联清理;同步文档与部署脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 09:58:04 -05:00
eric
eceefbe7cb TikTok redirect URI and callback use trailing slash
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 09:36:50 -05:00
eric
e1e20d1af8 Allow public access to TikTok OAuth callback and verify file
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 09:32:07 -05:00
eric
637690e476 Fix TikTok verify file path outside gitignored data dir
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 09:29:59 -05:00
eric
40d11ce332 Serve TikTok URL prefix verification file
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 09:29:45 -05:00
eric
d396afb5d7 Fix TikTok table migration: use executescript for init_db
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 09:12:03 -05:00
eric
c547e181e4 Add isolated TikTok auto-upload module with dedicated /tiktok page
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 09:03:59 -05:00
eric
c9df6be027 Isolate YouTube upload quota by OAuth Client A/B/C/D.
Client A exhaustion no longer pauses Client B jobs; banners and counters are per-profile.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 19:57:35 -05:00
eric
b752943d22 Group Shorts channels and upcoming uploads by OAuth Client A/B/C/D.
Same-named channels are split into account sections with colored Client badges on cards, schedule rows, and job lists.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 19:43:24 -05:00
eric
74e2b91228 Narrow YouTube OAuth scopes to upload+readonly.
Drop youtubepartner/analytics scopes that commonly break unverified Google consent with a 500 page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 19:30:26 -05:00
eric
0d2f63757a Add reusable A/B/C/D Google OAuth profiles in settings.
Channels pick a profile instead of re-entering Client ID/Secret; existing global/channel credentials keep working as fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 19:16:28 -05:00
eric
4f144f3daf Support per-channel Google OAuth Client for multi-account YouTube auth.
Existing channels keep using the global Client; optional per-channel Client ID/Secret isolates A/B/C/D OAuth apps without changing Douyin monitor paths.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 18:40:58 -05:00
eric
9e1ac3b150 Shorts dedup: global room_id+day, one upload per room per day across all channels
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 04:37:06 -05:00
eric
765501e225 Shorts dedup: per-channel room_id within same Beijing day
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 04:31:49 -05:00