Skip to content

Commit

Permalink
feat(discfan): support search status
Browse files Browse the repository at this point in the history
  • Loading branch information
haowenwu authored and fzlins committed Nov 9, 2024
1 parent 6cf0e4b commit 6c75e27
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion resource/sites/discfan.net/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"tags": ["影视", "港片"],
"schema": "NexusPHP",
"host": "discfan.net",
"collaborator": "haowenwu",
"levelRequirements": [{
"level": "1",
"name": "Power User",
Expand Down Expand Up @@ -129,5 +130,21 @@
}
}
}
},
"searchEntryConfig": {
"fieldSelector": {
"progress": {
"selector": ["div[title^='leeching'], div[title^='seeding'], div[title^='inactivity']"],
"filters": ["query ? parseFloat(query.attr('title').match(/[\\d.]+/)) : null"]
},
"status": {
"selector": ["div[title*='leeching']", "div[title*='seeding']", "div[title*='inactivity']"],
"switchFilters": [
["1"],
["2"],
["255"]
]
}
}
}
}
}

0 comments on commit 6c75e27

Please sign in to comment.