implement libav in some methods
This commit is contained in:
parent
9489689dbf
commit
d92f02d38e
7 changed files with 259 additions and 56 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue