feat: update types in /rsshub/rss

This commit is contained in:
DIYgod 2019-09-09 17:30:37 +08:00
parent 976fd27e8c
commit 49569ba92b
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 22 additions and 1 deletions

View File

@ -2,7 +2,28 @@ const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const types = ['social-media', 'programming', 'live', 'multimedia', 'picture', 'anime', 'program-update', 'university', 'traditional-media', 'forecast', 'travel', 'shopping', 'game', 'reading', 'government', 'other'];
const types = [
'social-media',
'new-media',
'traditional-media',
'programming',
'design',
'live',
'multimedia',
'picture',
'anime',
'program-update',
'university',
'forecast',
'travel',
'shopping',
'game',
'reading',
'government',
'blog',
'study',
'other',
];
const all = await Promise.all(
types.map(async (type) => {
const response = await got({