Skip to content

Commit

Permalink
fix(freefarm): name, desc, progression and status
Browse files Browse the repository at this point in the history
  • Loading branch information
mylylyl authored and IITII committed Oct 5, 2023
1 parent 869d4e7 commit 62dcfd7
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions resource/sites/pt.0ff.cc/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Farm",
"name": "FreeFarm",
"timezoneOffset": "+0800",
"description": "Farm",
"description": "自由农场 FreeFarm",
"url": "https://pt.0ff.cc/",
"icon": "https://pt.0ff.cc/favicon.ico",
"tags": [],
Expand Down Expand Up @@ -82,6 +82,29 @@
}
],
"collaborator": "koal",
"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"
]
}
}
}
},
"selectors": {
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
Expand All @@ -105,4 +128,4 @@
}
}
}
}
}

0 comments on commit 62dcfd7

Please sign in to comment.