哔咔新增hideSearchImg配置项 #124

This commit is contained in:
yeyang
2024-07-07 19:12:56 +08:00
parent 1cbd9cacc2
commit 0e8f707d9e
2 changed files with 12 additions and 10 deletions

View File

@@ -12,3 +12,5 @@ imageQuality: medium
hibiAPI: https://hibiapi.dengfenglai.icu
#哔咔搜索排序方式dd最新发布、da最早发布、ld最多喜欢、vd最多浏览
searchSort: ld
#隐藏哔咔搜索简略图
hideSearchImg: false

View File

@@ -61,14 +61,14 @@ export default new (class {
let { title, tags, categories, author, description = "未知", likesCount, thumb, _id, finished } = item
msg.push(_id)
msg.push([
`${index + 1}${title}\n`,
`作者:${author}\n`,
`描述:${_.truncate(description)}\n`,
`分类:${categories.join("")}\n`,
`喜欢:${likesCount}\n`,
`完结:${finished}\n`,
tags ? `tag${_.truncate(tags.join(","))}\n` : "",
await this._requestBikaImg(thumb.fileServer, thumb.path)
`${index + 1}${title}\n`,
`作者:${author}\n`,
`描述:${_.truncate(description)}\n`,
`分类:${categories.join("")}\n`,
`喜欢:${likesCount}\n`,
`完结:${finished}\n`,
tags ? `tag${_.truncate(tags.join(","))}\n` : "",
Config.bika.hideSearchImg ? "" : await this._requestBikaImg(thumb.fileServer, thumb.path)
])
}
return msg