mirror of
https://github.com/fish2018/pansou.git
synced 2025-11-25 03:14:59 +08:00
ouge 增加图片显示
This commit is contained in:
@@ -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插件标准
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user