mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
14 lines
233 B
TypeScript
14 lines
233 B
TypeScript
import { config } from '@/config';
|
|
import Parser from 'rss-parser';
|
|
|
|
const parser = new Parser({
|
|
customFields: {
|
|
item: ['magnet'],
|
|
},
|
|
headers: {
|
|
'User-Agent': config.ua,
|
|
},
|
|
});
|
|
|
|
export default parser;
|