Commit Graph

137 Commits

Author SHA1 Message Date
eric
91cdcd74b3 Reorder assign panel columns and add featured button on slot list.
Put time-slot list in the middle with featured on the right, and allow promoting slot entries to featured directly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 03:10:10 -05:00
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
a9c0af5f36 Fix YPP monetize self-cert to use ANSWER_SKIPPED enum.
Matches youtube-studio library payload so Studio metadata_update accepts altered-content questionnaire.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 02:03:33 -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
3d66fe10eb fix: restore YtChannelMeta import for shorts page build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:43:04 -05:00
eric
d99153175a fix: clear oauth_ok after re-auth, show Google brand hints, reduce false OAuth errors
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:29:05 -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
ee1250c724 fix: build login redirects from public host behind Caddy proxy
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 00:55:21 -05:00
eric
117c981275 fix: use relative login redirects behind reverse proxy
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 00:52:28 -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
2ee2775bfb fix(youtube): show channel avatar and YouTube nickname on cards for OAuth matching
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 22:39:47 -05:00
eric
b08b66724d fix(yt-long): always enable ads on YPP uploads and show Chinese monetize result
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 22:29:17 -05:00
eric
052c49714f fix(yt-long): reclaim cascade-only jobs into pending so catch-up actually records
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 07:57:52 -05:00
eric
ada999751e fix(yt-long): show Chinese status and friendly cascade-only copy in job list
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 07:36:11 -05:00
eric
6a033e6326 fix(yt-long): 5 long videos/channel BJ-day, drop to 4 when YouTube API limited
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 07:26:58 -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
42c4a7494e feat(youtube): add Assign tab as default next to OAuth manage
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 21:38:48 -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
89e4c664a6 fix(yt-long): count pending in quota, reclaim orphan recordings, Chinese sample reasons
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 10:49:08 -05:00
eric
4bb424b73e ui(yt-long): clone Shorts ops layout for long-form page
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 10:37:10 -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
565081678b fix(pwa): guide China users to Add to Home Screen (WebAPK needs Google)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 08:00:46 -05:00
eric
472cef16de fix(pwa): clearer Android install feedback + harden SW precache
Explain app-drawer vs home screen; show manual Chrome menu steps; avoid SW install fail on auth redirect.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 07:53:31 -05:00
eric
c9c3c8e1b4 chore: bump dylive-helper to 2.2.3 (X daily limit detect)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 06:57:07 -05:00
eric
f63dbb78b3 fix: detect X daily post limit and pause auto-post
Extension reads the 'You've hit the daily post limit' banner and fails the job instead of reporting success. Backend then disables x_clips_auto_post, skips remaining scheduled clips, and cancels queued engage.post jobs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 06:53:14 -05:00
eric
dd2931af86 fix(test1): X 切片无限重发 bug — reclaim 把已完成任务退回 scheduled
根因:postTweet 不返回 tweetId,sync 写空 tweet_id,reclaim 又退回。
修复:1) tweet_id 为空时用 x2:jobId 标记已完成 2) reclaim 排除 finished_at>0
3) attempts>=3 直接 failed 不再循环。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 08:40:38 -05:00
eric
b5a6907b85 feat(ops): 站点概览卡片点击弹窗查看访客详情
弹窗含 PV/访客/趋势及页面、来源、地区、城市、语言、设备、OS、浏览器等排行。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 03:07:58 -05:00
eric
7b3c926bfb fix(test1): X 活动流展示账号/文案/媒体,去掉「做完了」废话
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 01:01:37 -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
993433d380 feat(ops): auto-poll server for live analytics/monitor updates
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 00:34:15 -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
d57a0e2acb fix(ops): keep webhook notify untouched; normalize Umami script
Ops/ntfy stays isolated from existing live/TikTok webhook paths.

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

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 08:37:31 -05:00
eric
708b2148bb fix(test1): 恢复旧任务可见性,默认显示全部账号
未打账号标记的历史任务不再被过滤隐藏;默认进入「全部账号」。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-15 08:34:12 -05:00