Skip to content

Commit

Permalink
Merge pull request #102 from sbwml/main
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
wxy1343 authored Feb 17, 2023
2 parents 2f383cc + 52376de commit 6c0114a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aliyunpan/about.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.0.8'
__version__ = '3.0.9'
3 changes: 1 addition & 2 deletions aliyunpan/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,12 @@ def get_file_list(self, parent_file_id: str = 'root', next_marker: str = None, r
json['marker'] = next_marker
headers = {}
kwargs = {}
url = 'https://api.aliyundrive.com/adrive/v3/file/list'
if self._share.share_id:
url = 'https://api.aliyundrive.com/adrive/v3/file/list'
json.update({'share_id': self._share.share_id, 'share_pwd': self._share.share_pwd})
headers = {'x-share-token': self.get_share_token()}
kwargs = {'access_token': None}
else:
url = 'https://api.aliyundrive.com/v2/file/list'
json.update({"drive_id": self.drive_id, 'fields': '*'})
logger.info(f'Get the list of parent_file_id {parent_file_id}.')
r = self._req.post(url, json=json, headers=headers, **kwargs)
Expand Down

0 comments on commit 6c0114a

Please sign in to comment.