Skip to content

Commit

Permalink
Merge pull request #8 from ronggang/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Bright-W authored Apr 29, 2022
2 parents 983625e + bbffd01 commit ae3afd0
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resource/sites/jpopsuki.eu/getSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (!"".getQueryString) {
class Parser {
constructor() {
this.haveData = false;
if (/auth_form/.test(options.responseText)) {
if (/You will be banned for 6 hours after your login attempts run out/.test(options.responseText)) {
options.status = ESearchResultParseStatus.needLogin; //`[${options.site.name}]需要登录后再搜索`;
return;
}
Expand Down
135 changes: 135 additions & 0 deletions resource/sites/resource.xidian.edu.cn/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"name": "睿思",
"timezoneOffset": "+0800",
"description": "西电睿思PT",
"url": "http://resource.xidian.edu.cn/",
"icon": "http://resource.xidian.edu.cn/favicon.ico",
"tags": [
"教育网",
"影视",
"综合"
],
"schema": "NexusPHP",
"host": "resource.xidian.edu.cn",
"collaborator": "luy",
"searchEntry": [
{
"name": "全站",
"enabled": true
},
{
"queryString": "cat401=1",
"name": "电影",
"enabled": false
},
{
"queryString": "cat402=1",
"name": "电视剧",
"enabled": false
},
{
"queryString": "cat403=1",
"name": "综艺",
"enabled": false
},
{
"queryString": "cat404=1",
"name": "纪录片",
"enabled": false
},
{
"queryString": "cat405=1",
"name": "动漫",
"enabled": false
},
{
"queryString": "cat406=1",
"name": "MV",
"enabled": false
},
{
"queryString": "cat407=1",
"name": "体育",
"enabled": false
},
{
"queryString": "cat408=1",
"name": "音乐",
"enabled": false
},
{
"queryString": "cat410=1",
"name": "游戏",
"enabled": false
},
{
"queryString": "cat411=1",
"name": "学习",
"enabled": false
},
{
"queryString": "cat412=1",
"name": "软件",
"enabled": false
},
{
"queryString": "cat409=1",
"name": "其他",
"enabled": false
}
],
"categories": [{
"entry": "*",
"result": "&cat$id$=1",
"category": [{
"id": 401,
"name": "电影"
},
{
"id": 402,
"name": "电视剧"
},
{
"id": 403,
"name": "综艺"
},
{
"id": 404,
"name": "纪录片"
},
{
"id": 405,
"name": "动漫"
},
{
"id": 406,
"name": "MV"
},
{
"id": 407,
"name": "体育"
},
{
"id": 408,
"name": "音乐"
},
{
"id": 410,
"name": "游戏"
},
{
"id": 411,
"name": "学习"
},
{
"id": 412,
"name": "软件"
},
{
"id": 409,
"name": "其他"
}
]
}],
"cdn": ["http://resource.xidian.edu.cn/"]
}
2 changes: 1 addition & 1 deletion src/background/contextMenus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export class ContextMenus {
});
chrome.tabs.sendMessage(tabid, {
action: EAction.showMessage,
data: result
data: result.status=="" ? this.service.i18n.t("service.contextMenus.sendTorrentToClientError") : result
});
})
.finally(() => {
Expand Down

0 comments on commit ae3afd0

Please sign in to comment.