fix: facebook page attach cover image (#6175)

This commit is contained in:
zhong666
2020-11-15 13:51:55 +00:00
committed by GitHub
parent 1cb4559e3d
commit f19aaa43c1
+2 -2
View File
@@ -20,11 +20,11 @@ const parseStoryPage = async (linkPath, cache) => {
const $ = cheerio.load(html);
const url = `https://www.facebook.com/story.php?story_fbid=${storyFbId}&id=${storyId}`;
const $story = $('#m_story_permalink_view').first();
const $story = $('#m_story_permalink_view').eq(0);
const $box = $story.find('div > div > div > div').eq(0);
const $header = $box.find('header').eq(0);
const $content = $box.find('div > div').eq(0);
const $attach = $box.find('div > div').eq(1);
const $attach = $story.find('div > div > div > div:nth-child(3)').eq(0);
const attachLinkList = $attach
.find('a')