mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-16 02:42:57 +08:00
fix: 腾讯柠檬精选 Mac Apps (#6033)
This commit is contained in:
@@ -4,7 +4,7 @@ const date = require('@/utils/date');
|
||||
module.exports = async (ctx) => {
|
||||
const url = 'https://lemon.qq.com/lab/js/source.js';
|
||||
|
||||
let data = (await got.get(url)).data.match(/(?<=(var list = ))(.*)(\])/gs)[0];
|
||||
let data = (await got.get(url)).data.match(/(?<=(const list = ))(.*)(\])/gs)[0];
|
||||
|
||||
// eslint-disable-next-line no-eval
|
||||
data = eval('(' + data + ')').slice(0, 10);
|
||||
|
||||
Reference in New Issue
Block a user