Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix TorrentSeeds to use UNIT3D #1085

Merged
merged 23 commits into from
Jul 20, 2022
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7e110e1
Merge pull request #3 from ronggang/dev
Bright-W Mar 29, 2022
311d06e
Merge pull request #4 from ronggang/dev
Bright-W Apr 5, 2022
9e68e0d
Merge pull request #5 from ronggang/dev
Bright-W Apr 16, 2022
983625e
Merge pull request #6 from ronggang/dev
Bright-W Apr 20, 2022
ae3afd0
Merge pull request #8 from ronggang/dev
Bright-W Apr 29, 2022
63c77d9
Merge pull request #10 from ronggang/dev
Bright-W May 6, 2022
f98efed
fix: blutopia seeding data
Bright-W May 7, 2022
cf597d8
fix: blutopia message count
Bright-W May 7, 2022
dd241ba
Revert "fix: blutopia message count"
Bright-W May 7, 2022
ce2cc4e
Merge pull request #13 from ronggang/dev
Bright-W May 7, 2022
1793e6b
Merge pull request #16 from ronggang/dev
Bright-W May 15, 2022
facbaaa
Merge pull request #17 from ronggang/dev
Bright-W May 16, 2022
2434a06
Merge pull request #18 from ronggang/dev
Bright-W May 23, 2022
04285f1
Merge pull request #20 from ronggang/dev
Bright-W Jun 1, 2022
84c304e
Merge pull request #22 from ronggang/dev
Bright-W Jun 5, 2022
fb3acb8
Merge pull request #23 from ronggang/dev
Bright-W Jun 17, 2022
43e4d36
Merge pull request #24 from ronggang/dev
Bright-W Jun 26, 2022
845cbed
Merge pull request #25 from ronggang/dev
Bright-W Jul 3, 2022
52cd2cc
Merge pull request #26 from ronggang/dev
Bright-W Jul 4, 2022
d317a2e
Merge pull request #28 from ronggang/dev
Bright-W Jul 14, 2022
194cd8b
Merge pull request #29 from ronggang/dev
Bright-W Jul 18, 2022
527d363
Merge pull request #30 from ronggang/dev
Bright-W Jul 20, 2022
57df7dd
Update config.json
Bright-W Jul 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
193 changes: 4 additions & 189 deletions resource/sites/www.torrentseeds.org/config.json
Original file line number Diff line number Diff line change
@@ -1,194 +1,9 @@
{
"name": "TorrentSeeds",
"description": "TorrentSeeds",
"url": "https://www.torrentseeds.org/",
"icon": "https://www.torrentseeds.org/favicon.ico",
"tags": [
"综合"
],
"schema": "torrentseeds",
"tags": ["综合"],
"schema": "UNIT3D",
"host": "www.torrentseeds.org",
"collaborator": "ian",
"supportedFeatures": {
"search": true,
"imdbSearch": false,
"userData": true,
"sendTorrent": true
},
"plugins": [
{
"name": "种子详情页面",
"pages": [
"/details.php"
],
"scripts": [
"/schemas/NexusPHP/common.js",
"details.js"
]
},
{
"name": "种子列表",
"pages": [
"^/$",
"/browse.php",
"/browse_elastic.php"
],
"styles": [
"/libs/album/style.css"
],
"scripts": [
"/schemas/NexusPHP/common.js",
"/libs/album/album.js",
"torrents.js"
]
}
],
"selectors": {
"userBaseInfo": {
"page": "/",
"fields": {
"id": {
"selector": [
"#statusBar > div > div > span:nth-child(1) > span > a"
],
"attribute": "href",
"filters": [
"query ? query.getQueryString('id'):''"
]
},
"name": {
"selector": [
"#statusBar > div > div > span:nth-child(1) > span > a > span > b"
]
},
"levelName": {
"selector": [
"#statusBar > div > div > span:nth-child(1) > b"
],
"filters": [
"query.text().trim().replace('[','').replace(']','')"
]
},
"uploaded": {
"selector": [
"#statusBar > div > div > span:nth-child(6)"
],
"filters": [
"query.text().trim().replace(/,/g,'').sizeToNumber()"
]
},
"downloaded": {
"selector": [
"#statusBar > div > div > span:nth-child(7)"
],
"filters": [
"query.text().trim().replace(/,/g,'').sizeToNumber()"
]
}
}
},
"userExtendInfo": {
"page": "/userdetails.php?id=$user.id$&action=general",
"fields": {
"joinTime": {
"selector": [
"#tabvanilla > table > tbody > tr:nth-child(2) > td:nth-child(2)"
],
"filters": [
"query.text().trim()",
"dateTime(query).isValid()?dateTime(query).valueOf():query"
]
},
"bonus": {
"selector": [
"div:nth-child(2) > div > div:nth-child(1) > a:nth-child(2)"
],
"filters": [
"query.text().trim()",
"parseFloat(query)"
]
}
}
},
"userSeedingTorrents": {
"page": "/userdetails.php?id=$user.id$&action=torrents",
"fields": {
"seeding": {
"selector": [
"#ka1 > table > tbody > tr:not(:eq(0))"
],
"filters": [
"query.length"
]
},
"seedingSize": {
"selector": [
"#ka1 > table > tbody > tr:not(:eq(0))"
],
"filters": [
"jQuery.map(query.find('td:eq(2)'), (item)=>{return $(item).text();})",
"_self.getTotalSize(query)"
]
}
}
}
},
"torrentTagSelectors": [
{
"name": "Free",
"selector": "span.freeleech"
},
{
"name": "Free",
"selector": "font:contains('FREE')"
}
],
"searchEntryConfig": {
"page": "/browse_elastic.php",
"queryString": "query=$key$&search_in=name&search_mode=all&order_by=added&order_way=desc",
"resultType": "html",
"loggedRegex": "logout\\.php",
"parseScriptFile": "getSearchResult.js",
"resultSelector": "table.torrent-table",
"firstDataRowIndex": 1,
"fieldIndex": {
"title": 1,
"seeders": 8,
"size": 6,
"leechers": 9,
"link": 1,
"url": 1,
"completed": 7,
"category": 0,
"time": 5
},
"fieldSelector": {
"title": {
"selector": [
"div > p:nth-child(2) > a"
],
"filters": [
"query.text().trim()"
]
},
"link": {
"selector": [
"div > p:nth-child(2) > a"
],
"attribute": "href"
},
"url": {
"selector": [
"div > span > a:nth-child(2)"
],
"attribute": "href"
}
}
},
"searchEntry": [
{
"name": "全部",
"enabled": true
}
]
}
"collaborator": "ian"
}