Commit Graph

59 Commits

Author SHA1 Message Date
eric
1bd2d299c1 Fix assign auto-fill SQL error and auto-populate slot lists on load.
Remove invalid sessions.platform filter, ensure defaults from Douyin live data when groups load, and make manual fill force-refresh without 500s.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 03:01:43 -05:00
eric
999ce60ea1 Add YouTube assign time-slot rotation and fix channel card layout.
24h Beijing channel rotation with slot list, live-data auto-fill, and compact sidebar cards for /youtube assign.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 02:55:04 -05:00
eric
c9c71948cb Unify YouTube OAuth/YPP card meta and fix YPP monetize payloads.
Seed brand hints on startup, merge Shorts OAuth into yt-long board, and retry Studio monetize with corrected self-cert formats.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:59:36 -05:00
eric
0309bbe0f6 fix: revoke stale OAuth on re-auth and reject tokens missing force-ssl scope
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:17:23 -05:00
eric
6851984983 feat: unified YouTube channel cards with live/YPP/OAuth meta and auto YPP probe on re-auth
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:03:20 -05:00
eric
01a0ab351f fix: reject OAuth brand mismatches without overwriting channel tokens
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 00:13:15 -05:00
eric
82bcd5a26b fix(youtube): cache channel avatars on S3, refresh only on demand
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 03:34:42 -05:00
eric
e943e7873b feat(youtube-assign): dedupe by room_id and blacklist detect/ban/purge
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 01:38:00 -05:00
eric
9b2eef646c feat(youtube-assign): show KEY, parse title/cover, copy/export lists
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 01:22:44 -05:00
eric
c9e29cc6e6 feat: show OAuth channel profile on Shorts/yt-long quota cards
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 21:28:45 -05:00
eric
1febe0869e feat(yt-long): auto-enable ad monetization for YPP channels
Detect isChannelMonetizationEnabled and best-effort turn on Monetize with ads after long-form upload.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 12:55:25 -05:00
eric
896d8a64b3 fix: harden clip disk/CPU usage on small VPS
Cap long-form concurrency, delete masters after cascade/upload, restore post-upload deletes, shorten retention to 24h, and block recording when free disk is low.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 12:40:51 -05:00
eric
e0776c9142 feat(yt-long): split source vs upload quota so masters cover all platforms
Auto-size master recording to max(Shorts/TikTok/X/YT upload need) while keeping YouTube long uploads at 14x3; cascade-only masters wait for upload slots.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 12:23:52 -05:00
eric
7e4a8b4e70 feat: 9:16 yt-long masters, cascade cuts to TikTok/Shorts/X, 48h clip retention
Keep vertical long-form by default (16:9 opt-in off), reuse masters via ffmpeg segments for other platforms, and rush-or-delete clips older than 48h.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 12:04:42 -05:00
eric
31228a0410 chore(yt-long): set daily quota to 14x3 (42 global)
Raise defaults and API caps so each of 14 channels can ship at least 3 long videos per Beijing day, with concurrency/sample batch tuned to keep up.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 11:31:33 -05:00
eric
a6ede5619c fix: harden yt-long reclaim/quota/sync, monitor overdue backoff, X day-pause, TikTok cookie delay
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 11:21:18 -05:00
eric
0dcfdb263a feat(yt-long): add 100 English SEO titles and descriptions for street food
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 11:04:21 -05:00
eric
161dc58b57 fix(yt-long): cap kick concurrency and expose status in health
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 10:22:49 -05:00
eric
9732647037 fix(yt-long): add independent live sampling so imported channels get jobs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 10:08:58 -05:00
eric
72ef4c62e0 feat(yt-long): independent channels board, jobs table, and logs UI
Own yt_long_channels (+ import from Shorts OAuth), filtered jobs/events APIs, Shorts-like page tabs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 09:56:15 -05:00
eric
7bfead371a feat: isolated YouTube long-form 16:9 module (default off)
Companion to Shorts: 3-8min landscape (9:16 centered), upload as watch?v= not Shorts.
Own yt_long_jobs table/settings; read-only Shorts channel OAuth; never writes shorts_*.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 09:35:33 -05:00
eric
04dc572df7 feat(test1): Shorts/TikTok/X 文案库 100+1 随机(英文 street food 存 DB)
各平台独立 100 条英文文案写入 caption_pool,上传时与自定义模板一并随机。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 00:48:48 -05:00
eric
d8bf5658e6 feat(ops): show Umami visit analytics on /ops like GA overview
Keep monitor/DNS/ntfy as a separate tab; analytics is read-only via Umami API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 23:58:40 -05:00
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
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
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
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
45c2437a0e feat: TikTok 上传支持按账号可选 SOCKS 静态住宅 IP
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:40:48 -05:00
eric
7cf6d02ff3 fix: TikTok 录制刷新直播流并重试,确认上传可选账号
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:21:48 -05:00
eric
4c8eafacb3 feat: TikTok Cookie 按账号计时,并支持多账号独立会话
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 13:19:06 -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
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
d8fdeaa71c TikTok: Cookie 上传(TiktokAutoUploader),替代开发者 OAuth
账号粘贴 sessionid 即可上传;TikTok 模块独立,默认关闭不影响监控/Shorts。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 10:16:20 -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
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
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
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
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