Skip to content

Commit ece6107

Browse files
authored
fix(jpop): 当关闭 torrent grouping 时,从搜索结果中获取种子报错 (#2001)
1 parent 699604e commit ece6107

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resource/sites/jpopsuki.eu/getSearchResult.js

+7
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ if (!"".getQueryString) {
141141
case row.is(".torrent_redline"):
142142
albumRow = row;
143143
albumTitle = title;
144+
// 当在 Profile 里关闭 torrent grouping 时,补全单元格以让索引位置生效
145+
if (cells.eq(0).text().trim() !== "") {
146+
let tmpRow = row.clone().get(0);
147+
tmpRow.insertCell(0);
148+
cells = $(tmpRow).find(">td");
149+
fieldIndex.category = 0;
150+
}
144151
break;
145152

146153
default:

0 commit comments

Comments
 (0)