Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
修复 #12
Browse files Browse the repository at this point in the history
od文件数不超过30文件的分享链接下载失败
  • Loading branch information
666wcy committed Sep 6, 2021
1 parent 252f6c1 commit 930910f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bot/modules/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ async def downloadFiles(client,info,password,originalPath, req, layers, start=1,

fileCount = 0
# print(headerStr)
if filesData==None:
pat = re.search(
'g_listData = {"wpq":"","Templates":{},"ListData":{ "Row" : ([\s\S]*?),"FirstRow"', reqf.text)
filesData = json.loads(pat.group(1))
for i in filesData:
if i['FSObjType'] == "1":
print("\t" * layers, "文件夹:",
Expand Down Expand Up @@ -460,7 +464,11 @@ async def odpriva_downloadFiles(client,info,admin,password,originalPath, req, la
else:
filesData = filesData.extend(graphqlReq[
"data"]["legacy"]["renderListDataAsStream"]["ListData"]["Row"])


if filesData==None:
pat = re.search(
'g_listData = {"wpq":"","Templates":{},"ListData":{ "Row" : ([\s\S]*?),"FirstRow"', reqf.text)
filesData = json.loads(pat.group(1))
for i in filesData:
if i['FSObjType'] == "1":
print("\t" * layers, "文件夹:",
Expand Down

0 comments on commit 930910f

Please sign in to comment.