fix: keep coolapk sharekey in url (#6025)
This commit is contained in:
@@ -83,13 +83,12 @@ const parseDongtai = async (item, ctx) => {
|
||||
const parseTuwen = async (item, ctx) => {
|
||||
const title = item.title;
|
||||
const pubdate = new Date(item.lastupdate * 1000).toUTCString();
|
||||
const itemUrl = item.shareUrl.split('?')[0];
|
||||
const author = item.username;
|
||||
|
||||
const description = await ctx.cache.tryGet(itemUrl, async () => {
|
||||
const description = await ctx.cache.tryGet(item.shareUrl, async () => {
|
||||
const result = await got({
|
||||
method: 'get',
|
||||
url: itemUrl,
|
||||
url: item.shareUrl,
|
||||
headers: getHeaders(),
|
||||
});
|
||||
|
||||
@@ -104,7 +103,8 @@ const parseTuwen = async (item, ctx) => {
|
||||
title: title,
|
||||
description: description,
|
||||
pubDate: pubdate,
|
||||
link: itemUrl,
|
||||
link: item.shareUrl,
|
||||
guid: item.shareUrl.split('?')[0],
|
||||
author: author,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user