fix: 修复youtube发布配置
This commit is contained in:
parent
fc169f7a1f
commit
dd0c81f27c
File diff suppressed because it is too large
Load Diff
@ -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,
|
||||
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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user