From 54d66d2b016b09d5c4a73f376d9c52a49513e4a6 Mon Sep 17 00:00:00 2001 From: woleigedouer <38418090+woleigedouer@users.noreply.github.com> Date: Sat, 1 Nov 2025 17:40:20 +0800 Subject: [PATCH] =?UTF-8?q?wanou=20=E5=A2=9E=E5=8A=A0=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/wanou/wanou.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin/wanou/wanou.go b/plugin/wanou/wanou.go index e1f9850..fb00a00 100644 --- a/plugin/wanou/wanou.go +++ b/plugin/wanou/wanou.go @@ -229,7 +229,13 @@ func (p *WanouAsyncPlugin) parseAPIItem(item WanouAPIItem) 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 *WanouAsyncPlugin) parseAPIItem(item WanouAPIItem) 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插件标准 }