mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-14 04:10:00 +00:00
instagram: replace filter with find for story media filtering
This commit is contained in:
parent
70fdc2939a
commit
55a93629a6
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ async function getStory(username, id) {
|
|||
media = data?.data?.xdt_api__v1__feed__reels_media?.reels_media?.find(m => m.id === userId);
|
||||
} catch {}
|
||||
|
||||
const item = media.items.filter(m => m.pk === id)[0];
|
||||
const item = media.items.find(m => m.pk === id);
|
||||
if (!item) return { error: 'ErrorEmptyDownload' };
|
||||
|
||||
if (item.video_versions) {
|
||||
|
|
Loading…
Reference in a new issue