Skip to content

Commit

Permalink
fix: DSM schedule login respect enabled option
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoOwO committed Jan 15, 2023
1 parent 563c54d commit 640d5e9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions dataModule/dsm.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ function parseComposers(data) {
return parseArtists(data, type = "composer")
}

//自動重新登入
schedule.scheduleJob("0 0 * * *", function () {
pokaLog.logDM('DSM', '正在重新登入...')
login();
});

async function onLoaded() {
//自動重新登入
schedule.scheduleJob("0 0 * * *", function () {
pokaLog.logDM('DSM', '正在重新登入...')
login();
});

return await login();
}
async function login() {
Expand Down

0 comments on commit 640d5e9

Please sign in to comment.