Skip to content

Commit

Permalink
Merge pull request #17 from ronggang/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Bright-W authored May 16, 2022
2 parents 1793e6b + e4cb350 commit facbaaa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 25 deletions.
1 change: 1 addition & 0 deletions resource/sites/aidoru-online.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
}],
"host": "aidoru-online.me",
"searchEntryConfig": {
"skipIMDbId": true,
"page": "/get_ttable.php?pcat=Show+All&subbed=&fl=&resd=&p=0&searchstr=$key$&deadlive=1&sortcol=id&sortorder=desc&startdt=&enddt=",
"loggedRegex": "class=\"ttable_headinner\"",
"resultType": "html",
Expand Down
25 changes: 1 addition & 24 deletions resource/sites/aither.cc/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,5 @@
"综合"
],
"host": "aither.cc",
"collaborator": "MewX",
"searchEntry": [
{
"name": "全部",
"enabled": true
}
],
"searchEntryConfig": {
"page": "/torrents",
"queryString": "perPage=100&name=$key$",
"area": [
{
"name": "IMDB",
"keyAutoMatch": "^(tt\\d+)$",
"queryString": "perPage=100&imdbId=$key$",
"replaceKey": [
"tt",
""
]
}
],
"resultType": "html",
"parseScriptFile": "getSearchResult.js"
}
"collaborator": "MewX"
}
5 changes: 4 additions & 1 deletion resource/sites/filelist.io/getSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,17 @@
for (let index = 0; index < rows.length; index++) {
const row = rows.eq(index);
let cells = row.find(">div");
let titleStrings = cells
.eq(fieldIndex.title)
.find("a")
.attr("title");
let title = cells
.eq(fieldIndex.title)
.find("a")
.first();
if (title.length == 0) {
continue;
}
let titleStrings = title.text();
let link = title.attr("href");
if (link && link.substr(0, 4) !== "http") {
link = `${site.url}/${link}`;
Expand Down
1 change: 1 addition & 0 deletions resource/sites/hdf.world/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
}],
"securityKeyFields": ["authkey", "torrent_pass"],
"searchEntryConfig": {
"skipIMDbId": true,
"page": "/ajax.php",
"resultType": "json",
"parseScriptFile": "getSearchResult.js",
Expand Down
1 change: 1 addition & 0 deletions resource/sites/u2.dmhy.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"host": "u2.dmhy.org",
"searchEntryConfig": {
"merge": true,
"skipIMDbId": true,
"fieldSelector": {
"progress": {
"selector": ["td[class*='seedhlc_']", "td[class*='leechhlc_']", ""],
Expand Down

0 comments on commit facbaaa

Please sign in to comment.