We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec9235 commit 24c5045Copy full SHA for 24c5045
lib/routes/nikkei/cn/index.ts
@@ -5,7 +5,18 @@ import got from '@/utils/got';
5
import { load } from 'cheerio';
6
import timezone from '@/utils/timezone';
7
import { parseDate } from '@/utils/parse-date';
8
-import parser from '@/utils/rss-parser';
+import { config } from '@/config';
9
+import Parser from 'rss-parser';
10
+
11
+const parser = new Parser({
12
+ customFields: {
13
+ item: ['magnet'],
14
+ },
15
+ headers: {
16
+ 'User-Agent': config.ua,
17
18
+ defaultRSS: 0.9,
19
+});
20
21
export const route: Route = {
22
path: '/cn/*',
0 commit comments