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: "",
|
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: "",
|
|
||||||
MadeForKids: false,
|
|
||||||
Privacy: "public",
|
|
||||||
ThumbNail: coverUrl,
|
|
||||||
Tags: nil,
|
Tags: nil,
|
||||||
|
// CategoryId: 0, // YouTube 分类 ID(例如:24 = Entertainment)
|
||||||
|
MadeForKids: false,
|
||||||
|
ThumbNail: coverUrl,
|
||||||
|
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))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user