Skip to content

Commit

Permalink
fix(pikpak_share): change media url to content url (close #3273) (#3441)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashiCoin authored Feb 16, 2023
1 parent 567ba5c commit 3798634
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/pikpak_share/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/alist-org/alist/v3/internal/model"
"github.com/alist-org/alist/v3/pkg/utils"
"github.com/go-resty/resty/v2"
log "github.com/sirupsen/logrus"
)

type PikPakShare struct {
Expand Down Expand Up @@ -71,10 +70,6 @@ func (d *PikPakShare) Link(ctx context.Context, file model.Obj, args model.LinkA
link := model.Link{
URL: resp.FileInfo.WebContentLink,
}
if len(resp.FileInfo.Medias) > 0 && resp.FileInfo.Medias[0].Link.Url != "" {
log.Debugln("use media link")
link.URL = resp.FileInfo.Medias[0].Link.Url
}
return &link, nil
}

Expand Down

0 comments on commit 3798634

Please sign in to comment.