Skip to content

Commit 481b365

Browse files
committed
Add nwafu
1 parent df52964 commit 481b365

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: nwafu.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const tunasync = require("./tunasync");
2+
3+
module.exports = async function (siteUrl) {
4+
const site = await (await fetch(siteUrl)).json();
5+
const mirrors = await tunasync("https://mirrors.nwafu.edu.cn/api/mirrorz/jobs");
6+
7+
return {
8+
site,
9+
info: [],
10+
mirrors,
11+
}
12+
};

Diff for: parsers.js

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const geekpie = require("./geekpie");
2929
const qlut = require("./qlut");
3030
const nyist = require("./nyist");
3131
const jcut = require("./jcut");
32+
const nwafu = require("./nwafu");
3233

3334
const config = require('./config.json')
3435

@@ -68,4 +69,5 @@ module.exports = {
6869
"qlut" : async () => lint(await qlut (site("qlut" ))),
6970
"nyist" : async () => lint(await nyist ( )),
7071
"jcut" : async () => lint(await jcut (site("jcut" ))),
72+
"nwafu" : async () => lint(await nwafu (site("nwafu" ))),
7173
};

0 commit comments

Comments
 (0)