ouge 增加图片显示

This commit is contained in:
woleigedouer
2025-11-01 18:08:41 +08:00
parent 52b30a3fd1
commit c2ab4b32f3

View File

@@ -230,6 +230,12 @@ func (p *OugeAsyncPlugin) parseAPIItem(item OugeAPIItem) model.SearchResult {
// 解析下载链接
links := p.parseDownloadLinks(item.VodDownFrom, item.VodDownURL)
// 提取封面图片
var images []string
if item.VodPic != "" {
images = append(images, item.VodPic)
}
// 构建标签
var tags []string
if item.VodYear != "" {
@@ -245,6 +251,7 @@ func (p *OugeAsyncPlugin) parseAPIItem(item OugeAPIItem) model.SearchResult {
Content: content,
Links: links,
Tags: tags,
Images: images,
Channel: "", // 插件搜索结果Channel为空
Datetime: time.Time{}, // 使用零值而不是nil参考jikepan插件标准
}