mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: facebook page attach cover image (#6175)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user