implement libav in some methods

This commit is contained in:
stefanodvx 2025-04-17 16:21:59 +02:00
parent 9489689dbf
commit d92f02d38e
7 changed files with 259 additions and 56 deletions

View file

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