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

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