rsshub 1.0.0-master.fc5a2f6 → 1.0.0-master.fc648b5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.js +4 -0
- package/lib/middleware/anti-hotlink.js +90 -22
- package/lib/middleware/parameter.js +65 -32
- package/lib/middleware/templates/iframe.art +14 -0
- package/lib/radar-rules.js +0 -92
- package/lib/router.js +22 -22
- package/lib/routes/agefans/update.js +1 -1
- package/lib/routes/novel/biqugeinfo.js +2 -2
- package/lib/routes/universities/uestc/sice.js +12 -33
- package/lib/routes/weibo/user.js +10 -19
- package/lib/v2/19lou/index.js +74 -0
- package/lib/v2/19lou/maintainer.js +3 -0
- package/lib/v2/19lou/radar.js +29 -0
- package/lib/v2/19lou/router.js +3 -0
- package/lib/v2/36kr/router.js +1 -1
- package/lib/v2/36kr/user.js +47 -22
- package/lib/v2/acfun/article.js +100 -0
- package/lib/{routes → v2}/acfun/bangumi.js +7 -7
- package/lib/v2/acfun/maintainer.js +5 -0
- package/lib/v2/acfun/radar.js +25 -0
- package/lib/v2/acfun/router.js +5 -0
- package/lib/v2/acfun/video.js +45 -0
- package/lib/v2/agora0/index.js +54 -0
- package/lib/v2/agora0/maintainer.js +3 -0
- package/lib/v2/agora0/radar.js +13 -0
- package/lib/v2/agora0/router.js +3 -0
- package/lib/v2/apnews/maintainer.js +3 -0
- package/lib/v2/apnews/radar.js +13 -0
- package/lib/v2/apnews/router.js +3 -0
- package/lib/v2/apnews/templates/description.art +14 -0
- package/lib/v2/apnews/topics.js +44 -0
- package/lib/v2/appleinsider/index.js +59 -0
- package/lib/v2/appleinsider/maintainer.js +3 -0
- package/lib/v2/appleinsider/radar.js +13 -0
- package/lib/v2/appleinsider/router.js +3 -0
- package/lib/v2/cbnweek/index.js +46 -0
- package/lib/v2/cbnweek/maintainer.js +3 -0
- package/lib/v2/cbnweek/radar.js +13 -0
- package/lib/v2/cbnweek/router.js +3 -0
- package/lib/v2/ccac/news.js +12 -3
- package/lib/v2/cde/index.js +2 -2
- package/lib/v2/cde/maintainer.js +1 -0
- package/lib/v2/cde/radar.js +22 -4
- package/lib/v2/cde/router.js +1 -0
- package/lib/v2/cde/templates/xxgk/breakthroughCure.art +18 -0
- package/lib/v2/cde/templates/xxgk/cliniCal.art +16 -0
- package/lib/v2/cde/templates/xxgk/priorityApproval.art +18 -0
- package/lib/v2/cde/utils.js +2 -2
- package/lib/v2/cde/xxgk.js +73 -0
- package/lib/v2/chinadegrees/maintainer.js +3 -0
- package/lib/v2/chinadegrees/province.js +66 -0
- package/lib/v2/chinadegrees/radar.js +13 -0
- package/lib/v2/chinadegrees/router.js +3 -0
- package/lib/v2/chinadegrees/templates/description.art +4 -0
- package/lib/v2/cnjxol/index.js +94 -0
- package/lib/v2/cnjxol/maintainer.js +4 -0
- package/lib/v2/cnjxol/radar.js +19 -0
- package/lib/v2/cnjxol/router.js +3 -0
- package/lib/v2/cnjxol/templates/description.art +2 -0
- package/lib/v2/cscse/maintainer.js +3 -0
- package/lib/v2/cscse/radar.js +13 -0
- package/lib/v2/cscse/router.js +3 -0
- package/lib/v2/cscse/tzgg.js +54 -0
- package/lib/v2/dgjyw/index.js +67 -0
- package/lib/v2/dgjyw/maintainer.js +3 -0
- package/lib/v2/dgjyw/radar.js +13 -0
- package/lib/v2/dgjyw/router.js +3 -0
- package/lib/v2/domp4/detail.js +67 -0
- package/lib/v2/domp4/latest.js +31 -0
- package/lib/v2/domp4/maintainer.js +4 -0
- package/lib/v2/domp4/radar.js +25 -0
- package/lib/v2/domp4/router.js +4 -0
- package/lib/v2/domp4/utils.js +72 -0
- package/lib/v2/douyin/hashtag.js +5 -43
- package/lib/v2/douyin/live.js +68 -0
- package/lib/v2/douyin/maintainer.js +2 -0
- package/lib/v2/douyin/radar.js +8 -0
- package/lib/v2/douyin/router.js +1 -0
- package/lib/v2/douyin/user.js +5 -43
- package/lib/v2/douyin/utils.js +50 -0
- package/lib/v2/economist/full.js +6 -4
- package/lib/v2/elsevier/issue.js +62 -0
- package/lib/v2/elsevier/journal.js +72 -0
- package/lib/v2/elsevier/maintainer.js +2 -2
- package/lib/v2/elsevier/radar.js +5 -5
- package/lib/v2/elsevier/router.js +4 -2
- package/lib/v2/elsevier/templates/description.art +5 -5
- package/lib/v2/gov/beijing/jw/tzgg.js +58 -0
- package/lib/v2/gov/customs/list.js +21 -17
- package/lib/v2/gov/customs/utils.js +9 -5
- package/lib/v2/gov/maintainer.js +3 -0
- package/lib/v2/gov/nmpa/generic.js +76 -0
- package/lib/v2/gov/pbc/goutongjiaoliu.js +20 -15
- package/lib/v2/gov/pbc/tradeAnnouncement.js +18 -14
- package/lib/v2/gov/radar.js +57 -27
- package/lib/v2/gov/router.js +3 -0
- package/lib/v2/gov/xuzhou/hrss.js +54 -0
- package/lib/v2/hackertalk/index.js +23 -0
- package/lib/v2/hackertalk/maintainer.js +3 -0
- package/lib/v2/hackertalk/radar.js +13 -0
- package/lib/v2/hackertalk/router.js +3 -0
- package/lib/v2/hashnode/blog.js +62 -0
- package/lib/v2/hashnode/maintainer.js +3 -0
- package/lib/v2/hashnode/radar.js +13 -0
- package/lib/v2/hashnode/router.js +3 -0
- package/lib/v2/hashnode/templates/description.art +2 -0
- package/lib/v2/hdu/cs/{index.js → notice.js} +1 -4
- package/lib/v2/hdu/cs/pg.js +54 -0
- package/lib/v2/hdu/maintainer.js +1 -0
- package/lib/v2/hdu/radar.js +6 -0
- package/lib/v2/hdu/router.js +2 -1
- package/lib/v2/heu/gx/list.js +2 -2
- package/lib/v2/heu/job/list.js +2 -2
- package/lib/v2/heu/uae/list.js +2 -2
- package/lib/v2/heu/yjsy/list.js +2 -2
- package/lib/v2/hk01/channel.js +40 -0
- package/lib/{routes → v2}/hk01/hot.js +2 -1
- package/lib/v2/hk01/issue.js +41 -0
- package/lib/v2/hk01/maintainer.js +7 -0
- package/lib/v2/hk01/radar.js +37 -0
- package/lib/v2/hk01/router.js +7 -0
- package/lib/{routes → v2}/hk01/tag.js +2 -1
- package/lib/{routes → v2}/hk01/zone.js +3 -2
- package/lib/v2/hotukdeals/index.js +1 -1
- package/lib/v2/ieee/journal.js +78 -0
- package/lib/v2/ieee/maintainer.js +2 -2
- package/lib/v2/ieee/radar.js +4 -4
- package/lib/v2/ieee/{latestdate.js → recent.js} +34 -42
- package/lib/v2/ieee/router.js +4 -2
- package/lib/v2/ieee/templates/description.art +5 -5
- package/lib/v2/ielts/index.js +7 -2
- package/lib/v2/keep/maintainer.js +3 -0
- package/lib/v2/keep/radar.js +13 -0
- package/lib/v2/keep/router.js +3 -0
- package/lib/v2/keep/templates/user.art +16 -0
- package/lib/{routes → v2}/keep/user.js +14 -4
- package/lib/v2/mdpi/journal.js +65 -0
- package/lib/v2/mdpi/maintainer.js +3 -0
- package/lib/v2/mdpi/radar.js +13 -0
- package/lib/v2/mdpi/router.js +3 -0
- package/lib/v2/mdpi/templates/description.art +12 -0
- package/lib/v2/mindmeister/example.js +44 -0
- package/lib/v2/mindmeister/maintainer.js +3 -0
- package/lib/v2/mindmeister/radar.js +13 -0
- package/lib/v2/mindmeister/router.js +3 -0
- package/lib/v2/mindmeister/templates/image.art +1 -0
- package/lib/v2/mirror/index.js +34 -0
- package/lib/v2/mirror/maintainer.js +3 -0
- package/lib/v2/mirror/radar.js +17 -0
- package/lib/v2/mirror/router.js +3 -0
- package/lib/v2/nbd/radar.js +2 -2
- package/lib/v2/ncwu/maintainer.js +3 -0
- package/lib/v2/ncwu/notice.js +27 -0
- package/lib/v2/ncwu/radar.js +13 -0
- package/lib/v2/ncwu/router.js +3 -0
- package/lib/v2/netease/exclusive.js +148 -0
- package/lib/v2/netease/maintainer.js +1 -0
- package/lib/v2/netease/radar.js +8 -0
- package/lib/v2/netease/router.js +1 -0
- package/lib/v2/netease/templates/exclusive.art +11 -0
- package/lib/v2/nju/rczp.js +34 -24
- package/lib/v2/njust/utils.js +4 -0
- package/lib/v2/nuaa/utils/pypasswaf.js +4 -5
- package/lib/v2/nyaa/maintainer.js +4 -0
- package/lib/v2/nyaa/radar.js +32 -0
- package/lib/v2/nyaa/router.js +4 -0
- package/lib/{routes → v2}/nyaa/search.js +4 -2
- package/lib/v2/nytimes/daily_briefing_chinese.js +47 -41
- package/lib/v2/nytimes/index.js +3 -3
- package/lib/v2/nytimes/maintainer.js +1 -1
- package/lib/v2/nytimes/templates/image.art +3 -0
- package/lib/v2/nytimes/utils.js +7 -1
- package/lib/v2/oceanengine/arithmeticIndex.js +145 -0
- package/lib/v2/oceanengine/maintainer.js +3 -0
- package/lib/v2/oceanengine/radar.js +13 -0
- package/lib/v2/oceanengine/router.js +3 -0
- package/lib/v2/oceanengine/templates/content.art +14 -0
- package/lib/v2/openwrt/maintainer.js +3 -0
- package/lib/v2/openwrt/radar.js +13 -0
- package/lib/v2/openwrt/releases.js +25 -0
- package/lib/v2/openwrt/router.js +3 -0
- package/lib/v2/pincong/utils.js +7 -1
- package/lib/v2/pku/maintainer.js +3 -0
- package/lib/v2/pku/radar.js +20 -0
- package/lib/v2/pku/router.js +3 -0
- package/lib/v2/pku/ss/admission.js +53 -0
- package/lib/v2/pku/ss/notice.js +53 -0
- package/lib/v2/pku/ss/pg_admin.js +53 -0
- package/lib/v2/prestige-av/maintainer.js +3 -0
- package/lib/v2/prestige-av/radar.js +18 -0
- package/lib/v2/prestige-av/router.js +3 -0
- package/lib/{routes → v2}/prestige-av/series.js +8 -5
- package/lib/v2/qq/kg/cache.js +28 -0
- package/lib/v2/qq/kg/reply.js +21 -0
- package/lib/v2/qq/kg/user.js +50 -0
- package/lib/v2/qq/maintainer.js +2 -0
- package/lib/v2/qq/radar.js +14 -0
- package/lib/v2/qq/router.js +2 -0
- package/lib/v2/samsung/maintainer.js +3 -0
- package/lib/v2/samsung/radar.js +13 -0
- package/lib/v2/samsung/research/blog.js +49 -0
- package/lib/v2/samsung/router.js +3 -0
- package/lib/v2/{jasa/latest.js → scitation/journal.js} +24 -27
- package/lib/v2/scitation/maintainer.js +4 -0
- package/lib/v2/scitation/radar.js +19 -0
- package/lib/v2/scitation/router.js +4 -0
- package/lib/v2/scitation/section.js +90 -0
- package/lib/v2/scitation/templates/description.art +11 -0
- package/lib/v2/shuiguopai/index.js +76 -0
- package/lib/v2/shuiguopai/maintainer.js +3 -0
- package/lib/v2/shuiguopai/radar.js +13 -0
- package/lib/v2/shuiguopai/router.js +3 -0
- package/lib/v2/shuiguopai/templates/description.art +6 -0
- package/lib/v2/springer/journal.js +72 -0
- package/lib/v2/springer/maintainer.js +3 -0
- package/lib/v2/springer/radar.js +13 -0
- package/lib/v2/springer/router.js +3 -0
- package/lib/v2/springer/templates/description.art +12 -0
- package/lib/v2/supchina/index.js +67 -0
- package/lib/v2/supchina/maintainer.js +4 -0
- package/lib/v2/supchina/podcasts.js +66 -0
- package/lib/v2/supchina/radar.js +19 -0
- package/lib/v2/supchina/router.js +4 -0
- package/lib/v2/techflow520/index.js +34 -0
- package/lib/v2/techflow520/maintainer.js +4 -0
- package/lib/v2/techflow520/newsflash.js +32 -0
- package/lib/v2/techflow520/radar.js +19 -0
- package/lib/v2/techflow520/router.js +4 -0
- package/lib/v2/tencent/cloud/column.js +51 -0
- package/lib/v2/tencent/maintainer.js +1 -0
- package/lib/v2/tencent/radar.js +11 -0
- package/lib/v2/tencent/router.js +1 -0
- package/lib/v2/test/index.js +16 -1
- package/lib/v2/tiktok/user.js +28 -38
- package/lib/v2/trending/allTrending.js +169 -0
- package/lib/v2/trending/maintainer.js +3 -0
- package/lib/v2/trending/radar.js +35 -0
- package/lib/v2/trending/router.js +3 -0
- package/lib/v2/trending/templates/content.art +24 -0
- package/lib/v2/u3c3/index.js +59 -0
- package/lib/v2/u3c3/maintainer.js +3 -0
- package/lib/v2/u3c3/radar.js +29 -0
- package/lib/v2/u3c3/router.js +3 -0
- package/lib/v2/uraaka-joshi/uraaka-joshi-user.js +7 -1
- package/lib/v2/uraaka-joshi/uraaka-joshi.js +8 -1
- package/lib/v2/vlive/index.js +71 -0
- package/lib/v2/vlive/maintainer.js +3 -0
- package/lib/v2/vlive/radar.js +13 -0
- package/lib/v2/vlive/router.js +3 -0
- package/lib/v2/vlive/templates/post.art +8 -0
- package/lib/v2/vlive/templates/video.art +3 -0
- package/lib/v2/xiaohongshu/util.js +6 -6
- package/lib/v2/xjtu/2yuan/news.js +61 -0
- package/lib/v2/xjtu/dean.js +83 -0
- package/lib/{routes/universities → v2}/xjtu/ee.js +5 -5
- package/lib/{routes/universities → v2}/xjtu/gs/tzgg.js +6 -6
- package/lib/v2/xjtu/international.js +51 -0
- package/lib/v2/xjtu/job.js +81 -0
- package/lib/v2/xjtu/maintainer.js +9 -0
- package/lib/v2/xjtu/radar.js +53 -0
- package/lib/v2/xjtu/router.js +9 -0
- package/lib/v2/xjtu/std.js +58 -0
- package/lib/v2/xjtu/templates/attachments.art +3 -0
- package/lib/v2/xjtu/templates/std.art +4 -0
- package/lib/v2/xueqiu/column.js +42 -0
- package/lib/v2/xueqiu/maintainer.js +1 -0
- package/lib/v2/xueqiu/radar.js +6 -0
- package/lib/v2/xueqiu/router.js +1 -0
- package/lib/v2/zhangyoubao/index.js +42 -0
- package/lib/v2/zhangyoubao/maintainer.js +3 -0
- package/lib/v2/zhangyoubao/radar.js +13 -0
- package/lib/v2/zhangyoubao/router.js +3 -0
- package/lib/v2/zhangyoubao/templates/article.art +1 -0
- package/package.json +20 -19
- package/lib/routes/acfun/video.js +0 -44
- package/lib/routes/apnews/topics.js +0 -43
- package/lib/routes/dgjyw/index.js +0 -66
- package/lib/routes/hk01/channel.js +0 -22
- package/lib/routes/hk01/issue.js +0 -22
- package/lib/routes/mirror/entries.js +0 -80
- package/lib/routes/universities/ncwu/notice.js +0 -42
- package/lib/routes/universities/xjtu/dean.js +0 -86
- package/lib/routes/universities/xjtu/international.js +0 -53
- package/lib/routes/universities/xjtu/job.js +0 -50
- package/lib/v2/elsevier/latest.js +0 -87
- package/lib/v2/elsevier/volume.js +0 -75
- package/lib/v2/ieee/latestvol.js +0 -87
- package/lib/v2/jasa/maintainer.js +0 -4
- package/lib/v2/jasa/radar.js +0 -19
- package/lib/v2/jasa/router.js +0 -4
- package/lib/v2/jasa/section.js +0 -95
- package/lib/v2/jasa/templates/description.art +0 -11
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const rootUrl = 'https://www.cscse.edu.cn';
|
|
7
|
+
const currentUrl = `${rootUrl}/cscse/index/tzgg/index.html`;
|
|
8
|
+
|
|
9
|
+
const response = await got({
|
|
10
|
+
method: 'get',
|
|
11
|
+
url: currentUrl,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const $ = cheerio.load(response.data);
|
|
15
|
+
|
|
16
|
+
let items = $('.news_list li a')
|
|
17
|
+
.toArray()
|
|
18
|
+
.map((item) => {
|
|
19
|
+
item = $(item);
|
|
20
|
+
|
|
21
|
+
const link = item.attr('href');
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
title: item.text(),
|
|
25
|
+
link: `${/^http/.test(link) ? '' : rootUrl}${item.attr('href')}`,
|
|
26
|
+
pubDate: parseDate(item.next().text()),
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
items = await Promise.all(
|
|
31
|
+
items.map((item) =>
|
|
32
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
33
|
+
const detailResponse = await got({
|
|
34
|
+
method: 'get',
|
|
35
|
+
url: item.link,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const content = cheerio.load(detailResponse.data);
|
|
39
|
+
|
|
40
|
+
item.description = content('.zoom').html();
|
|
41
|
+
item.author = content('meta[name="Author"]').attr('content');
|
|
42
|
+
item.category = content('meta[name="Keywords"]').attr('content')?.split(',');
|
|
43
|
+
|
|
44
|
+
return item;
|
|
45
|
+
})
|
|
46
|
+
)
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
ctx.state.data = {
|
|
50
|
+
title: '中国留学网 - 通知公告',
|
|
51
|
+
link: currentUrl,
|
|
52
|
+
item: items,
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const timezone = require('@/utils/timezone');
|
|
4
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
5
|
+
|
|
6
|
+
module.exports = async (ctx) => {
|
|
7
|
+
const params = ctx.path;
|
|
8
|
+
|
|
9
|
+
const rootUrl = 'https://www.dgjyw.com';
|
|
10
|
+
const currentUrl = `${rootUrl}${params === '/' ? '/tz' : params}.htm`;
|
|
11
|
+
|
|
12
|
+
const response = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: currentUrl,
|
|
15
|
+
https: {
|
|
16
|
+
rejectUnauthorized: false,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const $ = cheerio.load(response.data);
|
|
21
|
+
|
|
22
|
+
let items = $('div.text-list ul li a')
|
|
23
|
+
.toArray()
|
|
24
|
+
.map((item) => {
|
|
25
|
+
item = $(item);
|
|
26
|
+
|
|
27
|
+
const link = item.attr('href');
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
title: item.text(),
|
|
31
|
+
link: `${/^http/.test(link) ? '' : `${rootUrl}/`}${link}`,
|
|
32
|
+
pubDate: parseDate(item.next().text()),
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
items = await Promise.all(
|
|
37
|
+
items.map((item) =>
|
|
38
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
39
|
+
if (/dgjyw\.com/.test(item.link)) {
|
|
40
|
+
const detailResponse = await got({
|
|
41
|
+
method: 'get',
|
|
42
|
+
url: item.link,
|
|
43
|
+
https: {
|
|
44
|
+
rejectUnauthorized: false,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const content = cheerio.load(detailResponse.data);
|
|
49
|
+
|
|
50
|
+
content('.cont-tit').remove();
|
|
51
|
+
content('.art-body').html(content('.v_news_content').html());
|
|
52
|
+
|
|
53
|
+
item.pubDate = timezone(parseDate(content('meta[name="PubDate"]').attr('content')), +8);
|
|
54
|
+
item.description = content('form[name="_newscontent_fromname"]').html();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return item;
|
|
58
|
+
})
|
|
59
|
+
)
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
ctx.state.data = {
|
|
63
|
+
title: $('title').text(),
|
|
64
|
+
link: currentUrl,
|
|
65
|
+
item: items,
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'dgjyw.com': {
|
|
3
|
+
_name: '东莞教研网',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '分类',
|
|
7
|
+
docs: 'https://docs.rsshub.app/other.html#dong-guan-jia-yan-wang-fen-lei',
|
|
8
|
+
source: ['/'],
|
|
9
|
+
target: (params, url) => `/dgjyw/${new URL(url).toString().match(/dgjyw\.com\/(.*)\.htm$/)[1]}`,
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const cheerio = require('cheerio');
|
|
2
|
+
const got = require('@/utils/got');
|
|
3
|
+
const { decodeCipherText, composeMagnetUrl } = require('./utils');
|
|
4
|
+
|
|
5
|
+
const baseUrl = 'https://www.domp4.cc';
|
|
6
|
+
|
|
7
|
+
function getItemList($, detailUrl) {
|
|
8
|
+
const encoded = $('.article script[type]')
|
|
9
|
+
.text()
|
|
10
|
+
.match(/return p}\('(.*)',(\d+),(\d+),'(.*)'.split\(/);
|
|
11
|
+
const data = JSON.parse(
|
|
12
|
+
decodeCipherText(encoded[1], encoded[2], encoded[3], encoded[4].split('|'), 0, {})
|
|
13
|
+
.match(/var down_urls=\\'(.*)\\'/)[1]
|
|
14
|
+
.replace(/\\\\"/g, '"')
|
|
15
|
+
.replace(/\\\\\\/g, '')
|
|
16
|
+
);
|
|
17
|
+
const { downurls } = data.Data[0];
|
|
18
|
+
return downurls.map((item) => {
|
|
19
|
+
const [title, magnet] = item.split('$');
|
|
20
|
+
return {
|
|
21
|
+
enclosure_url: composeMagnetUrl(magnet),
|
|
22
|
+
enclosure_length: '',
|
|
23
|
+
enclosure_type: 'application/x-bittorrent',
|
|
24
|
+
title,
|
|
25
|
+
link: detailUrl,
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function getMetaInfo($) {
|
|
31
|
+
const title = $('.article-header .text p').first().find('span').text();
|
|
32
|
+
const cover = $('.article-header .pic img').attr('src');
|
|
33
|
+
const description = $('.article-related.info p').text();
|
|
34
|
+
return {
|
|
35
|
+
title,
|
|
36
|
+
cover,
|
|
37
|
+
description,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
module.exports = async (ctx) => {
|
|
42
|
+
const { id } = ctx.params;
|
|
43
|
+
let pureId = id;
|
|
44
|
+
let detailType = 'html';
|
|
45
|
+
// compatible for .html suffix in radar
|
|
46
|
+
if (id.endsWith('.html')) {
|
|
47
|
+
pureId = id.replace('.html', '');
|
|
48
|
+
}
|
|
49
|
+
// compatible for /detail/123.html && /html/xxx.html
|
|
50
|
+
if (/^\d+$/.test(pureId)) {
|
|
51
|
+
detailType = 'detail';
|
|
52
|
+
}
|
|
53
|
+
const detailUrl = `${baseUrl}/${detailType}/${pureId}.html`;
|
|
54
|
+
|
|
55
|
+
const res = await got(detailUrl);
|
|
56
|
+
const $ = cheerio.load(res.data);
|
|
57
|
+
const list = getItemList($, detailUrl);
|
|
58
|
+
const meta = getMetaInfo($);
|
|
59
|
+
|
|
60
|
+
ctx.state.data = {
|
|
61
|
+
link: detailUrl,
|
|
62
|
+
title: meta.title || 'domp4电影 - 详情',
|
|
63
|
+
image: meta.cover,
|
|
64
|
+
description: meta.description,
|
|
65
|
+
item: list,
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
|
|
4
|
+
const baseUrl = 'https://www.domp4.cc';
|
|
5
|
+
const latestUrl = 'https://www.domp4.cc/custom/update.html';
|
|
6
|
+
|
|
7
|
+
function getItemList($, type) {
|
|
8
|
+
const list = $(`#${type} .list-group-item`)
|
|
9
|
+
.toArray()
|
|
10
|
+
.map((item) => {
|
|
11
|
+
item = $(item);
|
|
12
|
+
return {
|
|
13
|
+
title: item.find('a').text(),
|
|
14
|
+
link: `${baseUrl}${item.find('a').attr('href')}`,
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
return list;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = async (ctx) => {
|
|
21
|
+
const { type = 'vod' } = ctx.params;
|
|
22
|
+
const res = await got.get(latestUrl);
|
|
23
|
+
const $ = cheerio.load(res.data);
|
|
24
|
+
const list = getItemList($, type);
|
|
25
|
+
|
|
26
|
+
ctx.state.data = {
|
|
27
|
+
link: latestUrl,
|
|
28
|
+
title: 'domp4电影',
|
|
29
|
+
item: list,
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'domp4.cc': {
|
|
3
|
+
_name: 'domp4电影',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '最近更新',
|
|
7
|
+
docs: 'https://docs.rsshub.app/multimedia.html#domp4-ying-shi',
|
|
8
|
+
source: ['/', '/custom/update.html'],
|
|
9
|
+
target: '/domp4/latest/:type?',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: '剧集订阅',
|
|
13
|
+
docs: 'https://docs.rsshub.app/multimedia.html#domp4-ying-shi',
|
|
14
|
+
source: '/html/:id',
|
|
15
|
+
target: '/domp4/detail/:id',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: '剧集订阅',
|
|
19
|
+
docs: 'https://docs.rsshub.app/multimedia.html#domp4-ying-shi',
|
|
20
|
+
source: '/detail/:id',
|
|
21
|
+
target: '/domp4/detail/:id',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* trackers from https://www.domp4.cc/Style/2020/js/base.js?v=2
|
|
3
|
+
*/
|
|
4
|
+
const magnetTrackers = [
|
|
5
|
+
'https://tracker.iriseden.fr:443/announce',
|
|
6
|
+
'https://tr.highstar.shop:443/announce',
|
|
7
|
+
'https://tr.fuckbitcoin.xyz:443/announce',
|
|
8
|
+
'https://tr.doogh.club:443/announce',
|
|
9
|
+
'https://tr.burnabyhighstar.com:443/announce',
|
|
10
|
+
'https://t.btcland.xyz:443/announce',
|
|
11
|
+
'http://vps02.net.orel.ru:80/announce',
|
|
12
|
+
'https://tracker.kuroy.me:443/announce',
|
|
13
|
+
'http://tr.cili001.com:8070/announce',
|
|
14
|
+
'http://t.overflow.biz:6969/announce',
|
|
15
|
+
'http://t.nyaatracker.com:80/announce',
|
|
16
|
+
'http://open.acgnxtracker.com:80/announce',
|
|
17
|
+
'http://nyaa.tracker.wf:7777/announce',
|
|
18
|
+
'http://home.yxgz.vip:6969/announce',
|
|
19
|
+
'http://buny.uk:6969/announce',
|
|
20
|
+
'https://tracker.tamersunion.org:443/announce',
|
|
21
|
+
'https://tracker.nanoha.org:443/announce',
|
|
22
|
+
'https://tracker.loligirl.cn:443/announce',
|
|
23
|
+
'udp://bubu.mapfactor.com:6969/announce',
|
|
24
|
+
'http://share.camoe.cn:8080/announce',
|
|
25
|
+
'udp://movies.zsw.ca:6969/announce',
|
|
26
|
+
'udp://ipv4.tracker.harry.lu:80/announce',
|
|
27
|
+
'udp://tracker.sylphix.com:6969/announce',
|
|
28
|
+
'http://95.216.22.207:9001/announce',
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* compose magnet url with trackers
|
|
33
|
+
*/
|
|
34
|
+
function composeMagnetUrl(magnet, trackers = magnetTrackers) {
|
|
35
|
+
return `${magnet}&tr=${trackers.join('&tr=')}`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* method for generating magnet url
|
|
40
|
+
* from the detail page source
|
|
41
|
+
*/
|
|
42
|
+
function decodeCipherText(p, a, c, k, e, d) {
|
|
43
|
+
e = function (c) {
|
|
44
|
+
return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36));
|
|
45
|
+
};
|
|
46
|
+
if (!''.replace(/^/, String)) {
|
|
47
|
+
while (c--) {
|
|
48
|
+
d[e(c)] = k[c] || e(c);
|
|
49
|
+
}
|
|
50
|
+
k = [
|
|
51
|
+
function (e) {
|
|
52
|
+
return d[e];
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
e = function () {
|
|
56
|
+
return '\\w+';
|
|
57
|
+
};
|
|
58
|
+
c = 1;
|
|
59
|
+
}
|
|
60
|
+
while (c--) {
|
|
61
|
+
if (k[c]) {
|
|
62
|
+
p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return p;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
module.exports = {
|
|
69
|
+
magnetTrackers,
|
|
70
|
+
composeMagnetUrl,
|
|
71
|
+
decodeCipherText,
|
|
72
|
+
};
|
package/lib/v2/douyin/hashtag.js
CHANGED
|
@@ -1,51 +1,9 @@
|
|
|
1
1
|
const cheerio = require('cheerio');
|
|
2
2
|
const { parseDate } = require('@/utils/parse-date');
|
|
3
3
|
const { art } = require('@/utils/render');
|
|
4
|
-
const path = require('path');
|
|
5
4
|
const config = require('@/config').value;
|
|
6
5
|
const { fallback, queryToBoolean } = require('@/utils/readable-social');
|
|
7
|
-
|
|
8
|
-
const templates = {
|
|
9
|
-
desc: path.join(__dirname, 'templates/desc.art'),
|
|
10
|
-
cover: path.join(__dirname, 'templates/cover.art'),
|
|
11
|
-
embed: path.join(__dirname, 'templates/embed.art'),
|
|
12
|
-
iframe: path.join(__dirname, 'templates/iframe.art'),
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const resolveUrl = (url, tls = true, forceResolve = false) => {
|
|
16
|
-
if (!url) {
|
|
17
|
-
return '';
|
|
18
|
-
}
|
|
19
|
-
if (url.startsWith('//')) {
|
|
20
|
-
return (tls ? 'https:' : 'http:') + url;
|
|
21
|
-
}
|
|
22
|
-
if (forceResolve && !url.match(/^https?:\/\//)) {
|
|
23
|
-
return (tls ? 'https://' : 'http://') + url;
|
|
24
|
-
}
|
|
25
|
-
return url;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const proxyVideo = (url, proxy) => {
|
|
29
|
-
if (!(url && proxy)) {
|
|
30
|
-
return url + '';
|
|
31
|
-
}
|
|
32
|
-
if (proxy.includes('?')) {
|
|
33
|
-
if (!proxy.endsWith('=')) {
|
|
34
|
-
proxy += '=';
|
|
35
|
-
}
|
|
36
|
-
return proxy + encodeURIComponent(url);
|
|
37
|
-
} else {
|
|
38
|
-
if (!proxy.endsWith('/')) {
|
|
39
|
-
proxy += '/';
|
|
40
|
-
}
|
|
41
|
-
return proxy + url;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const getOriginAvatar = (url) =>
|
|
46
|
-
resolveUrl(url)
|
|
47
|
-
.replace(/^(.*\.douyinpic\.com\/).*(\/aweme-avatar\/)([^?]*)(\?.*)?$/, '$1origin$2$3')
|
|
48
|
-
.replace(/~\w+_\d+x\d+/g, '');
|
|
6
|
+
const { templates, resolveUrl, proxyVideo, getOriginAvatar } = require('./utils');
|
|
49
7
|
|
|
50
8
|
module.exports = async (ctx) => {
|
|
51
9
|
const { cid } = ctx.params;
|
|
@@ -64,6 +22,10 @@ module.exports = async (ctx) => {
|
|
|
64
22
|
async () => {
|
|
65
23
|
const browser = await require('@/utils/puppeteer')();
|
|
66
24
|
const page = await browser.newPage();
|
|
25
|
+
await page.setRequestInterception(true);
|
|
26
|
+
page.on('request', (request) => {
|
|
27
|
+
request.resourceType() === 'document' ? request.continue() : request.abort();
|
|
28
|
+
});
|
|
67
29
|
await page.goto(tagUrl, {
|
|
68
30
|
waitUntil: 'domcontentloaded',
|
|
69
31
|
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const config = require('@/config').value;
|
|
2
|
+
const { getOriginAvatar } = require('./utils');
|
|
3
|
+
|
|
4
|
+
module.exports = async (ctx) => {
|
|
5
|
+
const { rid } = ctx.params;
|
|
6
|
+
if (isNaN(rid)) {
|
|
7
|
+
throw Error('Invalid room ID. Room ID should be a number.');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const pageUrl = `https://live.douyin.com/${rid}`;
|
|
11
|
+
|
|
12
|
+
const renderData = await ctx.cache.tryGet(
|
|
13
|
+
`douyin:live:${rid}`,
|
|
14
|
+
async () => {
|
|
15
|
+
const browser = await require('@/utils/puppeteer')();
|
|
16
|
+
const page = await browser.newPage();
|
|
17
|
+
await page.setRequestInterception(true);
|
|
18
|
+
page.on('request', (request) => {
|
|
19
|
+
request.resourceType() === 'document' ? request.continue() : request.abort();
|
|
20
|
+
});
|
|
21
|
+
await page.goto(pageUrl, {
|
|
22
|
+
waitUntil: 'domcontentloaded',
|
|
23
|
+
});
|
|
24
|
+
const data = await page.evaluate(() => renderData);
|
|
25
|
+
browser.close();
|
|
26
|
+
|
|
27
|
+
return data;
|
|
28
|
+
},
|
|
29
|
+
config.cache.routeExpire,
|
|
30
|
+
false
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
if (renderData.routeInitialProps.status_code !== '0') {
|
|
34
|
+
throw `Status code ${renderData.routeInitialProps.status_code}: ${renderData.routeInitialProps.error.title}`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const roomInfo = renderData.initialState.roomStore.roomInfo;
|
|
38
|
+
const nickname = roomInfo.anchor.nickname;
|
|
39
|
+
const userAvatar = roomInfo.anchor.avatar_thumb.url_list[0];
|
|
40
|
+
|
|
41
|
+
const items = [];
|
|
42
|
+
if (roomInfo.roomId) {
|
|
43
|
+
if (roomInfo.room.status === 2) {
|
|
44
|
+
items.push({
|
|
45
|
+
title: `开播:${roomInfo.room.title}`,
|
|
46
|
+
link: pageUrl,
|
|
47
|
+
author: nickname,
|
|
48
|
+
guid: roomInfo.roomId, // roomId is unique for each live event
|
|
49
|
+
});
|
|
50
|
+
} else if (roomInfo.room.status === 4) {
|
|
51
|
+
items.push({
|
|
52
|
+
title: `当前直播已结束,期待下一场:${roomInfo.room.title}`,
|
|
53
|
+
link: `https://www.douyin.com/user/${roomInfo.anchor.sec_uid}`,
|
|
54
|
+
author: nickname,
|
|
55
|
+
guid: roomInfo.roomId,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
ctx.state.data = {
|
|
61
|
+
title: `${nickname}的抖音直播间 - 抖音直播`,
|
|
62
|
+
description: `欢迎来到${nickname}的抖音直播间,${nickname}与大家一起记录美好生活 - 抖音直播`,
|
|
63
|
+
image: getOriginAvatar(userAvatar),
|
|
64
|
+
link: pageUrl,
|
|
65
|
+
item: items,
|
|
66
|
+
allowEmpty: true,
|
|
67
|
+
};
|
|
68
|
+
};
|
package/lib/v2/douyin/radar.js
CHANGED
package/lib/v2/douyin/router.js
CHANGED
package/lib/v2/douyin/user.js
CHANGED
|
@@ -1,51 +1,9 @@
|
|
|
1
1
|
const cheerio = require('cheerio');
|
|
2
2
|
const { parseDate } = require('@/utils/parse-date');
|
|
3
3
|
const { art } = require('@/utils/render');
|
|
4
|
-
const path = require('path');
|
|
5
4
|
const config = require('@/config').value;
|
|
6
5
|
const { fallback, queryToBoolean } = require('@/utils/readable-social');
|
|
7
|
-
|
|
8
|
-
const templates = {
|
|
9
|
-
desc: path.join(__dirname, 'templates/desc.art'),
|
|
10
|
-
cover: path.join(__dirname, 'templates/cover.art'),
|
|
11
|
-
embed: path.join(__dirname, 'templates/embed.art'),
|
|
12
|
-
iframe: path.join(__dirname, 'templates/iframe.art'),
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const resolveUrl = (url, tls = true, forceResolve = false) => {
|
|
16
|
-
if (!url) {
|
|
17
|
-
return '';
|
|
18
|
-
}
|
|
19
|
-
if (url.startsWith('//')) {
|
|
20
|
-
return (tls ? 'https:' : 'http:') + url;
|
|
21
|
-
}
|
|
22
|
-
if (forceResolve && !url.match(/^https?:\/\//)) {
|
|
23
|
-
return (tls ? 'https://' : 'http://') + url;
|
|
24
|
-
}
|
|
25
|
-
return url;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const proxyVideo = (url, proxy) => {
|
|
29
|
-
if (!(url && proxy)) {
|
|
30
|
-
return url + '';
|
|
31
|
-
}
|
|
32
|
-
if (proxy.includes('?')) {
|
|
33
|
-
if (!proxy.endsWith('=')) {
|
|
34
|
-
proxy += '=';
|
|
35
|
-
}
|
|
36
|
-
return proxy + encodeURIComponent(url);
|
|
37
|
-
} else {
|
|
38
|
-
if (!proxy.endsWith('/')) {
|
|
39
|
-
proxy += '/';
|
|
40
|
-
}
|
|
41
|
-
return proxy + url;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const getOriginAvatar = (url) =>
|
|
46
|
-
resolveUrl(url)
|
|
47
|
-
.replace(/^(.*\.douyinpic\.com\/).*(\/aweme-avatar\/)([^?]*)(\?.*)?$/, '$1origin$2$3')
|
|
48
|
-
.replace(/~\w+_\d+x\d+/g, '');
|
|
6
|
+
const { templates, resolveUrl, proxyVideo, getOriginAvatar } = require('./utils');
|
|
49
7
|
|
|
50
8
|
module.exports = async (ctx) => {
|
|
51
9
|
const uid = ctx.params.uid;
|
|
@@ -64,6 +22,10 @@ module.exports = async (ctx) => {
|
|
|
64
22
|
async () => {
|
|
65
23
|
const browser = await require('@/utils/puppeteer')();
|
|
66
24
|
const page = await browser.newPage();
|
|
25
|
+
await page.setRequestInterception(true);
|
|
26
|
+
page.on('request', (request) => {
|
|
27
|
+
request.resourceType() === 'document' ? request.continue() : request.abort();
|
|
28
|
+
});
|
|
67
29
|
await page.goto(pageUrl, {
|
|
68
30
|
waitUntil: 'domcontentloaded',
|
|
69
31
|
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
const templates = {
|
|
4
|
+
desc: path.join(__dirname, 'templates/desc.art'),
|
|
5
|
+
cover: path.join(__dirname, 'templates/cover.art'),
|
|
6
|
+
embed: path.join(__dirname, 'templates/embed.art'),
|
|
7
|
+
iframe: path.join(__dirname, 'templates/iframe.art'),
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const resolveUrl = (url, tls = true, forceResolve = false) => {
|
|
11
|
+
if (!url) {
|
|
12
|
+
return '';
|
|
13
|
+
}
|
|
14
|
+
if (url.startsWith('//')) {
|
|
15
|
+
return (tls ? 'https:' : 'http:') + url;
|
|
16
|
+
}
|
|
17
|
+
if (forceResolve && !url.match(/^https?:\/\//)) {
|
|
18
|
+
return (tls ? 'https://' : 'http://') + url;
|
|
19
|
+
}
|
|
20
|
+
return url;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const proxyVideo = (url, proxy) => {
|
|
24
|
+
if (!(url && proxy)) {
|
|
25
|
+
return url + '';
|
|
26
|
+
}
|
|
27
|
+
if (proxy.includes('?')) {
|
|
28
|
+
if (!proxy.endsWith('=')) {
|
|
29
|
+
proxy += '=';
|
|
30
|
+
}
|
|
31
|
+
return proxy + encodeURIComponent(url);
|
|
32
|
+
} else {
|
|
33
|
+
if (!proxy.endsWith('/')) {
|
|
34
|
+
proxy += '/';
|
|
35
|
+
}
|
|
36
|
+
return proxy + url;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const getOriginAvatar = (url) =>
|
|
41
|
+
resolveUrl(url)
|
|
42
|
+
.replace(/^(.*\.douyinpic\.com\/).*(\/aweme-avatar\/)([^?]*)(\?.*)?$/, '$1origin$2$3')
|
|
43
|
+
.replace(/~\w+_\d+x\d+/g, '');
|
|
44
|
+
|
|
45
|
+
module.exports = {
|
|
46
|
+
templates,
|
|
47
|
+
resolveUrl,
|
|
48
|
+
proxyVideo,
|
|
49
|
+
getOriginAvatar,
|
|
50
|
+
};
|
package/lib/v2/economist/full.js
CHANGED
|
@@ -10,7 +10,7 @@ const getArticleDetail = async (link, ctx) =>
|
|
|
10
10
|
const nextData = JSON.parse($('head script[type="application/ld+json"]').text());
|
|
11
11
|
|
|
12
12
|
const article = $('#new-article-template > div > div.css-wvfzu8 > div.css-mticar').html() + $('#new-article-template > div > div.css-wvfzu8 > div > div > section').html();
|
|
13
|
-
const categories = nextData.keywords
|
|
13
|
+
const categories = nextData.keywords?.map((k) => k);
|
|
14
14
|
|
|
15
15
|
return { article, categories };
|
|
16
16
|
});
|
|
@@ -21,14 +21,16 @@ module.exports = async (ctx) => {
|
|
|
21
21
|
|
|
22
22
|
const items = await Promise.all(
|
|
23
23
|
feed.items.map(async (item) => {
|
|
24
|
-
const
|
|
24
|
+
const path = item.link.slice(item.link.lastIndexOf('/') + 1);
|
|
25
|
+
const isNotCollection = !/^\d{4}-\d{2}-\d{2}$/.test(path);
|
|
26
|
+
const itemDetails = isNotCollection ? await getArticleDetail(item.link, ctx) : null;
|
|
25
27
|
return {
|
|
26
28
|
title: item.title,
|
|
27
|
-
description: itemDetails.article,
|
|
29
|
+
description: isNotCollection ? itemDetails.article : item.content,
|
|
28
30
|
link: item.link,
|
|
29
31
|
guid: item.guid,
|
|
30
32
|
pubDate: item.pubDate,
|
|
31
|
-
category: itemDetails.categories,
|
|
33
|
+
category: isNotCollection ? itemDetails.categories : null,
|
|
32
34
|
};
|
|
33
35
|
})
|
|
34
36
|
);
|