fix: 修复youtube发布配置

This commit is contained in:
cjy 2026-01-07 14:24:31 +08:00
parent fc169f7a1f
commit dd0c81f27c
2 changed files with 2490 additions and 2474 deletions

File diff suppressed because it is too large Load Diff

View File

@ -587,23 +587,27 @@ func PostAS(workUuid string) error {
Visibility: "",
}
case cast.PlatformIDENUM_YOUTUBE:
// YouTube 发布选项配置
postReq.YouTubeOptions = &aryshare.YouTubeOptions{
Title: workDetail.Title,
Description: "",
CategoryId: "",
MadeForKids: false,
Privacy: "public",
ThumbNail: coverUrl,
Tags: nil,
NotifySubscribers: true,
Title: workDetail.Title,
Visibility: "public", // 可见性设置public/unlisted/private
Tags: nil,
// CategoryId: 0, // YouTube 分类 ID例如24 = Entertainment
MadeForKids: false,
ThumbNail: coverUrl,
PlaylistId: "",
NotifySubscribers: true,
Shorts: false,
ContainsSyntheticMedia: false,
PublishAt: "",
SubTitleUrl: "",
SubTitleLanguage: "",
SubTitleName: "",
}
case cast.PlatformIDENUM_BULESKY: // BLUESKY
// Bluesky 发布选项配置
postReq.BlueskyOptions = &aryshare.BlueskyOptions{
Labels: nil,
// Langs: []string{"en"},
QuotedPostUri: "",
ReplyToPostUri: "",
ReplyToPostCid: "",
AltText: nil, // 图片或视频的替代文本数组(用于屏幕阅读器的无障碍功能)
}
}
zap.L().Info("post 6", zap.Any("workUuid", workUuid), zap.Any("platformID", platformID))