Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clis/xiaohongshu/publish-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ async function waitForVideoPublishResult(page, { isDraft, maxWaitMs = PUBLISH_RE
return {
unknown: true,
message: `${isDraft ? '暂存' : '发布'}结果无法确认:等待终态超时。`
+ ` Last state: ${lastState.message || 'unknown'}.`
+ ` Last state: ${lastState.message || 'no terminal status message received'}.`
+ ' Debug screenshot: /tmp/xhs_publish_video_result_debug.png',
};
}
Expand Down
4 changes: 2 additions & 2 deletions clis/youtube/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ async function advanceToPrivacyStep(page, {
const screenshotPath = '/tmp/youtube_visibility_debug.png';
try { await page.screenshot({ path: screenshotPath }); } catch { /* screenshot is best-effort */ }
const state = JSON.stringify({
step: lastStep || 'unknown',
step: lastStep || 'no upload step detected',
nextFound: Boolean(lastProbe?.nextFound),
nextDisabled: Boolean(lastProbe?.nextDisabled),
doneFound: Boolean(lastProbe?.doneFound),
Expand Down Expand Up @@ -782,7 +782,7 @@ async function clickPublish(page, privacy, { budgetMs = 30_000, warningChecks =
await page.wait({ time: 0.8 });
}
debugPublish(`clickPublish: gave up, last=${JSON.stringify(last)}`);
throwPublishFailure(PUBLISH_ERROR_CODES.platformError, `YouTube publish/save button (#done-button) was not clickable (${last?.reason || 'unknown'})`);
throwPublishFailure(PUBLISH_ERROR_CODES.platformError, `YouTube publish/save button (#done-button) was not clickable (${last?.reason || 'page reported no reason'})`);
}

async function waitForYouTubePublishResult(page, privacy, expectedVideoId) {
Expand Down
55 changes: 46 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 51 additions & 17 deletions scripts/silent-column-drop-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,22 @@
"snippet"
]
},
{
"command": "tiktok/publish",
"file": "clis/tiktok/publish.js",
"missing": [
"captionSelector",
"hasSubmit",
"uploading"
]
},
{
"command": "tiktok/publish",
"file": "clis/tiktok/publish.js",
"missing": [
"outcome"
]
},
{
"command": "twitter/accept",
"file": "clis/twitter/accept.js",
Expand All @@ -605,15 +621,6 @@
"name"
]
},
{
"command": "twitter/list-remove",
"file": "clis/twitter/list-remove.js",
"missing": [
"method",
"ts",
"url"
]
},
{
"command": "twitter/list-tweets",
"file": "clis/twitter/list-tweets.js",
Expand Down Expand Up @@ -761,14 +768,6 @@
"status"
]
},
{
"command": "xianyu/search",
"file": "clis/xianyu/search.js",
"missing": [
"extra",
"original_price"
]
},
{
"command": "xiaohongshu/creator-note-detail",
"file": "clis/xiaohongshu/creator-note-detail.js",
Expand Down Expand Up @@ -806,6 +805,20 @@
"url"
]
},
{
"command": "xiaohongshu/publish-video",
"file": "clis/xiaohongshu/publish-video.js",
"missing": [
"pending"
]
},
{
"command": "xiaohongshu/publish-video",
"file": "clis/xiaohongshu/publish-video.js",
"missing": [
"unknown"
]
},
{
"command": "xiaohongshu/search",
"file": "clis/xiaohongshu/search.js",
Expand Down Expand Up @@ -876,6 +889,27 @@
"videos"
]
},
{
"command": "youtube/publish",
"file": "clis/youtube/publish.js",
"missing": [
"pending"
]
},
{
"command": "youtube/publish",
"file": "clis/youtube/publish.js",
"missing": [
"unknown"
]
},
{
"command": "youtube/publish",
"file": "clis/youtube/publish.js",
"missing": [
"videoId"
]
},
{
"command": "youtube/watch-later",
"file": "clis/youtube/watch-later.js",
Expand Down