cleanup code
This commit is contained in:
parent
12ad427baf
commit
e1f424b948
9 changed files with 138 additions and 95 deletions
|
@ -73,7 +73,7 @@ var ShareURLExtractor = &models.Extractor{
|
|||
IsRedirect: true,
|
||||
|
||||
Run: func(ctx *models.DownloadContext) (*models.ExtractorResponse, error) {
|
||||
client := util.GetHTTPSession(ctx.Extractor.CodeName)
|
||||
client := util.GetHTTPClient(ctx.Extractor.CodeName)
|
||||
req, err := http.NewRequest(
|
||||
http.MethodGet,
|
||||
ctx.MatchedContentURL,
|
||||
|
@ -98,7 +98,7 @@ func MediaListFromAPI(
|
|||
ctx *models.DownloadContext,
|
||||
stories bool,
|
||||
) ([]*models.Media, error) {
|
||||
client := util.GetHTTPSession(ctx.Extractor.CodeName)
|
||||
client := util.GetHTTPClient(ctx.Extractor.CodeName)
|
||||
|
||||
var mediaList []*models.Media
|
||||
postURL := ctx.MatchedContentURL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue