instagram: fixes

This commit is contained in:
stefanodvx 2025-04-20 13:17:30 +02:00
parent 7dab9207b7
commit 34219a848e
5 changed files with 15 additions and 19 deletions

View file

@ -46,8 +46,9 @@ var ShortExtractor = &models.Extractor{
IsRedirect: true,
Run: func(ctx *models.DownloadContext) (*models.ExtractorResponse, error) {
client := util.GetHTTPClient(ctx.Extractor.CodeName)
shortURL := fmt.Sprintf(shortenerAPIFormat, ctx.MatchedContentID)
location, err := util.GetLocationURL(shortURL, "")
location, err := util.GetLocationURL(client, shortURL, "")
if err != nil {
return nil, fmt.Errorf("failed to get real url: %w", err)
}