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