mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +08:00
refactor: 重构 rss-parser 作为工具类 (#2280)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const axios = require('@/utils/axios');
|
||||
const parser = require('@/utils/rss-parser');
|
||||
const cheerio = require('cheerio');
|
||||
const Parser = require('rss-parser');
|
||||
|
||||
const ProcessFeed = ($, link) => {
|
||||
const title = $('h1').text();
|
||||
@@ -36,7 +36,6 @@ const ProcessFeed = ($, link) => {
|
||||
};
|
||||
|
||||
const getData = async ({ site = 'www', channel }) => {
|
||||
const parser = new Parser();
|
||||
let feed;
|
||||
|
||||
if (channel) {
|
||||
|
||||
Reference in New Issue
Block a user