instagram: fixes share urls
This commit is contained in:
parent
34219a848e
commit
3e307658fa
5 changed files with 33 additions and 9 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue