instagram: fixes share urls

This commit is contained in:
stefanodvx 2025-04-21 22:30:52 +02:00
parent 34219a848e
commit 3e307658fa
5 changed files with 33 additions and 9 deletions

View file

@ -74,7 +74,11 @@ var ShareURLExtractor = &models.Extractor{
Run: func(ctx *models.DownloadContext) (*models.ExtractorResponse, error) {
client := util.GetHTTPClient(ctx.Extractor.CodeName)
redirectURL, err := util.GetLocationURL(client, ctx.MatchedContentURL, "")
redirectURL, err := util.GetLocationURL(
client,
ctx.MatchedContentURL,
igHeaders,
)
if err != nil {
return nil, fmt.Errorf("failed to get url location: %w", err)
}