fix: keep coolapk sharekey in url (#6025)

This commit is contained in:
hoilc
2020-10-29 16:47:19 +00:00
committed by GitHub
parent bb31fb6d52
commit 3d59aced4a
+4 -4
View File
@@ -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,
};
};