Skip to content

Commit

Permalink
feat(sunny): new site
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored and fzlins committed Dec 11, 2024
1 parent 07233f6 commit bf7c4f5
Show file tree
Hide file tree
Showing 2 changed files with 843 additions and 6 deletions.
48 changes: 48 additions & 0 deletions resource/sites/sunny/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "Sunny",
"schema": "NexusPHP",
"url": "https://sunnypt.top/",
"description": "Sunny",
"icon": "https://sunnypt.top/favicon.ico",
"tags": ["综合"],
"host": "sunnypt.top",
"levelRequirements": [
{
"level": "1",
"name": "Power User",
"interval": "4",
"downloaded": "50GB",
"ratio": "1.05",
"privilege": "直接发布种子;查看NFO文档;删除自己上传的字幕。"
}
],
"searchEntry": [
{
"name": "全部",
"enabled": true
}
],
"selectors": {
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seeding": {
"selector": [
"b:first"
],
"filters": [
"query.text()"
]
},
"seedingSize": {
"selector": "",
"filters": [
"query.text().match(/总大小:(.*?)上一页/g)",
"(query && query.length>0) ? query[0].replace('总大小:', '').replace('<< 上一页', '').trim() : 0",
"(query != 0) ? query.sizeToNumber() : 0"
]
}
}
}
}
}
Loading

0 comments on commit bf7c4f5

Please sign in to comment.