Skip to content

Commit

Permalink
fix(route): 四川工商学院 - 学院新闻 (#15381)
Browse files Browse the repository at this point in the history
* fix(route): fixed stbu docs & radar

* fix(route): removed target properties in radar
  • Loading branch information
HyperCherry authored Apr 26, 2024
1 parent 7e87a48 commit 14bbdc4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/routes/stbu/jsjxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ export const route: Route = {
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
antiCrawler: true,
supportBT: false,
supportPodcast: false,
supportScihub: false,
},
radar: [
{
source: ['jsjxy.stbu.edu.cn/news', 'jsjxy.stbu.edu.cn/'],
source: ['jsjxy.stbu.edu.cn/news', 'jsjxy.stbu.edu.cn', 'stbu.edu.cn'],
},
],
name: '计算机学院通知公告',
name: '计算机学院 - 通知公告',
maintainers: ['HyperCherry'],
handler,
url: 'jsjxy.stbu.edu.cn/news',
Expand Down
17 changes: 14 additions & 3 deletions lib/routes/stbu/xyxw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,30 @@ import timezone from '@/utils/timezone';
const gbk2utf8 = (s) => iconv.decode(s, 'gbk');
export const route: Route = {
path: '/xyxw',
categories: ['university'],
example: '/stbu/xyxw',
parameters: {},
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: true,
supportBT: false,
supportPodcast: false,
supportScihub: false,
},
radar: [
{
source: ['stbu.edu.cn/html/news/xueyuan', 'stbu.edu.cn/'],
source: ['stbu.edu.cn/html/news/xueyuan', 'stbu.edu.cn'],
},
],
name: 'Unknown',
name: '学院新闻',
maintainers: ['HyperCherry'],
handler,
url: 'stbu.edu.cn/html/news/xueyuan',
};

async function handler() {
const baseUrl = 'https://www.stbu.edu.cn';
const baseUrl = 'http://www.stbu.edu.cn';
const requestUrl = `${baseUrl}/html/news/xueyuan/`;
const { data: response } = await got(requestUrl, {
responseType: 'buffer',
Expand Down

0 comments on commit 14bbdc4

Please sign in to comment.