Skip to content

Commit

Permalink
Merge pull request #3 from ronggang/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Bright-W authored Mar 29, 2022
2 parents 83cc511 + 608d927 commit 7e110e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 37 deletions.
4 changes: 4 additions & 0 deletions resource/schemas/UNIT3D/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
"size": {
"selector": ["td.col-sm-2:contains('Size') + td"],
"filters": ["query.text().replace(/,/g,'').match(/([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length>1)?(query[1]).sizeToNumber():0"]
},
"sayThanksButton": {
"selector": [".button-block button.btn.btn-sm.btn-primary"],
"filters": ["$(query[0])"]
}
}
}
Expand Down
34 changes: 0 additions & 34 deletions resource/sites/asiancinema.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,40 +69,6 @@
"filters": ["query.text().trim().replace(/,|\\n/g,'')"]
}
}
},
"userExtendInfo": {
"page": "/users/$user.name$",
"fields": {
"seedingSize": {
"selector": ["table.table-condensed.table-striped.table-bordered:first td:contains('Seeding Size') + td"],
"filters": ["query.text().trim().replace(/,/g,'').sizeToNumber()"]
},
"levelName": {
"selector": "div.content span.badge-user"
},
"messageCount": {
"selector": [".point"],
"filters": ["query.length?'11':'0'"]
},
"joinTime": {
"selector": ["div.content h4:contains('Registration date')", "div.content h4:contains('注册日期')", "div.content h4:contains('註冊日期')"],
"filters": ["query.text().replace(/(Registration date|注册日期|註冊日期)/g, '').trim()", "dateTime(query).isValid()?dateTime(query).valueOf():query"]
}
}
},
"common": {
"page": "/torrents/",
"merge": true,
"fields": {
"size": {
"selector": ["td.col-sm-2:contains('Size') + td"],
"filters": ["query.text().replace(/,/g,'').match(/([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length>1)?(query[1]).sizeToNumber():0"]
},
"sayThanksButton": {
"selector": ["a.btn.btn-xs[data-original-title='Thank']"],
"filters": ["query"]
}
}
}
}
}
4 changes: 1 addition & 3 deletions resource/sites/hd.ai/getSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
site: site,
tags: this.getTags(item),
entryName: options.entry.name,
category: item.category,
progress: "",
status: ""
category: item.category
};
results.push(data);
});
Expand Down

0 comments on commit 7e110e1

Please sign in to comment.