Skip to content

Commit

Permalink
fix: enlarge page limit
Browse files Browse the repository at this point in the history
  • Loading branch information
52funny authored and 52funny committed Jul 16, 2024
1 parent 3052215 commit 2cb7e07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/pikpak/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (p *PikPak) GetFolderFileStatList(parentId string) ([]FileStat, error) {
filters := `{"trashed":{"eq":false}}`
query := url.Values{}
query.Add("thumbnail_size", "SIZE_MEDIUM")
query.Add("limit", "100")
query.Add("limit", "500")
query.Add("parent_id", parentId)
query.Add("with_audit", "false")
query.Add("filters", filters)
Expand Down
2 changes: 1 addition & 1 deletion internal/pikpak/folder.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (p *PikPak) GetFolderId(parentId string, dir string) (string, error) {
value.Add("page_token", "")
value.Add("with_audit", "false")
value.Add("thumbnail_size", "SIZE_LARGE")
value.Add("limit", "200")
value.Add("limit", "500")
for {
req, err := http.NewRequest("GET", fmt.Sprintf("https://api-drive.mypikpak.com/drive/v1/files?"+value.Encode()), nil)
if err != nil {
Expand Down

0 comments on commit 2cb7e07

Please sign in to comment.