Skip to content

Commit

Permalink
fix(jpop): 当关闭 torrent grouping 时,从搜索结果中获取种子报错 (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixff authored Oct 8, 2024
1 parent 699604e commit ece6107
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resource/sites/jpopsuki.eu/getSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ if (!"".getQueryString) {
case row.is(".torrent_redline"):
albumRow = row;
albumTitle = title;
// 当在 Profile 里关闭 torrent grouping 时,补全单元格以让索引位置生效
if (cells.eq(0).text().trim() !== "") {
let tmpRow = row.clone().get(0);
tmpRow.insertCell(0);
cells = $(tmpRow).find(">td");
fieldIndex.category = 0;
}
break;

default:
Expand Down

0 comments on commit ece6107

Please sign in to comment.