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