mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-14 00:10:43 +08:00
This commit is contained in:
parent
ad4026955f
commit
179856adca
@ -46,15 +46,16 @@ class Alist:
|
||||
def refresh(self, path, force_refresh=True):
|
||||
url = f"{self.url}/api/fs/list"
|
||||
headers = {"Authorization": self.token}
|
||||
querystring = {
|
||||
payload = {
|
||||
"path": path,
|
||||
"refresh": force_refresh,
|
||||
"password": "",
|
||||
"page": 1,
|
||||
"per_page": 0,
|
||||
}
|
||||
try:
|
||||
response = requests.request(
|
||||
"POST", url, headers=headers, params=querystring
|
||||
"POST", url, headers=headers, json=payload
|
||||
)
|
||||
response.raise_for_status()
|
||||
response = response.json()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user