Skip to content

Commit

Permalink
feat(GazelleJSONAPI)!: 搜索title 以及 subTitle维护
Browse files Browse the repository at this point in the history
Fix #1119
  • Loading branch information
ted423 committed Sep 7, 2022
1 parent 82af921 commit 1baa206
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions resource/schemas/GazelleJSONAPI/getSearchResult.js
Expand Up @@ -59,22 +59,21 @@
torrents.forEach(torrent => {
let data = {
title:
group.artist +
" - " +
(group.artist ? group.artist + " - " : "") +
group.groupName +
" / " +
group.groupYear +
" / " +
(group.releaseType ? group.releaseType : ""),
subTitle:
torrent.format +
" / " +
torrent.encoding +
" / " +
torrent.media +
(torrent.hasLog ? ` / Log(${torrent.logScore})` : "") +
(group.releaseType ? " / " + group.releaseType : "") +
(torrent.format ? " / " + torrent.format : " / " + torrent.codec) +
(torrent.encoding ? " / " + torrent.encoding : " / " + torrent.resolution),

subTitle:
(torrent.container ? torrent.container: "") +
(torrent.hasLog ? `Log(${torrent.logScore})` : "") +
(torrent.hasCue ? " / Cue" : "") +
(torrent.remastered ? ` / ${torrent.remasterYear} / ${torrent.remasterTitle}` : "") +
(torrent.remastered ? ` / Remaster / ${torrent.remasterYear} / ${torrent.remasterTitle}` : "") +
(torrent.scene ? " / Scene" : ""),
link: `${site.url}torrents.php?id=${group.groupId}&torrentid=${torrent.torrentId}`,
url: `${site.url}torrents.php?action=download&id=${torrent.torrentId}&authkey=${authkey}&torrent_pass=${passkey}`,
Expand Down

0 comments on commit 1baa206

Please sign in to comment.