Skip to content

Commit

Permalink
Merge pull request #39 from ronggang/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Bright-W committed Oct 13, 2022
2 parents 5cc3357 + 99ab2de commit 1243d87
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
15 changes: 15 additions & 0 deletions resource/sites/monikadesign.uk/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Monika",
"timezoneOffset": "+0800",
"schema": "UNIT3D",
"url": "https://monikadesign.uk/",
"icon": "https://monikadesign.uk/favicon.ico",
"description": "一个以动画为主体,涵盖日语影视音乐的资源站,诣在为广大动画、日剧日影、ACG Live爱好者提供一个资源信息交流平台。",
"tags": [
"影视",
"剧集",
"动漫"
],
"host": "monikadesign.uk",
"collaborator": "fzlins"
}
10 changes: 8 additions & 2 deletions resource/sites/pterclub.com/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,17 @@
}
}
},
"plugins": [{
"plugins": [
{
"name": "保种和官方列表",
"pages": ["/reseed.php", "/officialgroup.php"],
"scripts": ["/schemas/NexusPHP/common.js", "/schemas/NexusPHP/torrents.js"]
}],
},{
"name": "游戏种子详情页面",
"pages": ["/detailsgame.php"],
"scripts": ["/schemas/NexusPHP/common.js", "/schemas/Common/details.js"]
}
],
"mergeSchemaTagSelectors": true,
"torrentTagSelectors": [{
"name": "⛔️",
Expand Down
8 changes: 4 additions & 4 deletions src/background/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class User {

if (!userInfo.isLogged) {
userInfo.lastUpdateStatus = EUserDataRequestStatus.needLogin;
this.updateStatus(site, userInfo);
//this.updateStatus(site, userInfo);

rejectFN(
APP.createErrorMessage({
Expand Down Expand Up @@ -171,12 +171,12 @@ export class User {
})
.catch((error: any) => {
userInfo.lastUpdateStatus = EUserDataRequestStatus.unknown;
this.updateStatus(site, userInfo);
//this.updateStatus(site, userInfo);
rejectFN(APP.createErrorMessage(error));
});
} else {
userInfo.lastUpdateStatus = EUserDataRequestStatus.unknown;
this.updateStatus(site, userInfo);
//this.updateStatus(site, userInfo);
rejectFN(
APP.createErrorMessage({
status: EUserDataRequestStatus.unknown,
Expand All @@ -187,7 +187,7 @@ export class User {
})
.catch((error: any) => {
userInfo.lastUpdateStatus = EUserDataRequestStatus.unknown;
this.updateStatus(site, userInfo);
//this.updateStatus(site, userInfo);
rejectFN(APP.createErrorMessage(error));
});
});
Expand Down

0 comments on commit 1243d87

Please sign in to comment.