ouge 增加图片显示

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

View File

@@ -229,7 +229,13 @@ 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 != "" {
@@ -238,13 +244,14 @@ func (p *OugeAsyncPlugin) parseAPIItem(item OugeAPIItem) model.SearchResult {
if item.VodArea != "" {
tags = append(tags, item.VodArea)
}
return model.SearchResult{
UniqueID: uniqueID,
Title: title,
Content: content,
Links: links,
Tags: tags,
Images: images,
Channel: "", // 插件搜索结果Channel为空
Datetime: time.Time{}, // 使用零值而不是nil参考jikepan插件标准
}