From c2ab4b32f3aac5f734103bdf30083ea6fbcc9cda Mon Sep 17 00:00:00 2001 From: woleigedouer <38418090+woleigedouer@users.noreply.github.com> Date: Sat, 1 Nov 2025 18:08:41 +0800 Subject: [PATCH] =?UTF-8?q?ouge=20=E5=A2=9E=E5=8A=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/ouge/ouge.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin/ouge/ouge.go b/plugin/ouge/ouge.go index 449b222..aeafa58 100644 --- a/plugin/ouge/ouge.go +++ b/plugin/ouge/ouge.go @@ -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插件标准 }