diff --git a/resource/sites/hdroute.org/getSearchResult.js b/resource/sites/hdroute.org/getSearchResult.js index 391fd5484..ea8a8c434 100644 --- a/resource/sites/hdroute.org/getSearchResult.js +++ b/resource/sites/hdroute.org/getSearchResult.js @@ -42,6 +42,7 @@ let link = `${site.url}details.php?id=${id}`; let data = { + id, title: row.find(".title_chs").text(), subTitle: row.find(".title_eng").text(), link, diff --git a/src/interface/common.ts b/src/interface/common.ts index e9a2a976e..a94148036 100644 --- a/src/interface/common.ts +++ b/src/interface/common.ts @@ -340,6 +340,7 @@ export interface SearchResultItemCategory { * 搜索返回结果 */ export interface SearchResultItem { + id?: string; site: Site; title: string; titleHTML?: string; diff --git a/src/options/views/search/SearchTorrent.ts b/src/options/views/search/SearchTorrent.ts index 4f7b06969..42b7ac239 100644 --- a/src/options/views/search/SearchTorrent.ts +++ b/src/options/views/search/SearchTorrent.ts @@ -843,6 +843,18 @@ export default Vue.extend({ } } + if (!item.progress && !item.status) { + // 对比用户信息的seedingList修改做种状态信息 + if (item.site && item.site.user && item.site.user.seedingList) { + let seedingList = item.site.user.seedingList; + let seeding = seedingList.some(id => item.id && item.id == id); + if (seeding) { + item.progress = 100; + item.status = 2; + } + } + } + if (dayjs(item.time).isValid()) { let val: number | string = item.time + ""; // 标准时间戳需要 * 1000