fix instagram 429 error

This commit is contained in:
stefanodvx 2025-04-15 19:31:30 +02:00
parent eb30f85846
commit c6cb552dc8

View file

@ -119,10 +119,12 @@ func MediaListFromAPI(
} }
var caption string var caption string
if !stories { if !stories {
caption, err = GetPostCaption(postURL) // caption, err = GetPostCaption(postURL)
if err != nil { // if err != nil {
return nil, fmt.Errorf("failed to get caption: %w", err) // return nil, fmt.Errorf("failed to get caption: %w", err)
} // }
// todo: fix this (429 error)
} }
for _, item := range details.Items { for _, item := range details.Items {
media := ctx.Extractor.NewMedia( media := ctx.Extractor.NewMedia(