Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
aexus
bypy
提交
60520cb2
B
bypy
项目概览
aexus
/
bypy
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
bypy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
60520cb2
编写于
5月 20, 2020
作者:
H
Hou Tianze
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tidy the previous commit; Version bump
上级
c5b04eeb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
10 deletion
+14
-10
HISTORY.md
HISTORY.md
+1
-0
HISTORY.rst
HISTORY.rst
+2
-0
bypy/bypy.py
bypy/bypy.py
+7
-6
bypy/const.py
bypy/const.py
+1
-1
bypy/test/configdir/bypy.json
bypy/test/configdir/bypy.json
+2
-2
bypy/test/configdir/bypy.setting.json
bypy/test/configdir/bypy.setting.json
+1
-1
未找到文件。
HISTORY.md
浏览文件 @
60520cb2
### Version History:
-
1.6.8: Fix 1000 items limit for downloading
-
1.6.7: Handle update check network exceptions
-
1.6.6: Let it cry when dies, so we can have some trace
-
1.6.5: Fix
`KeyError: u'md5'`
in remote directory walking
...
...
HISTORY.rst
浏览文件 @
60520cb2
Version History:
~~~~~~~~~~~~~~~~
- 1.6.8: Fix 1000 items limit for downloading
- 1.6.7: Handle update check network exceptions
- 1.6.6: Let it cry when dies, so we can have some trace
...
...
bypy/bypy.py
浏览文件 @
60520cb2
...
...
@@ -1239,18 +1239,18 @@ Possible fixes:
def
__get_file_info_act
(
self
,
r
,
args
):
try
:
remotefile
=
args
(
remotefile
,
rjlist
)
=
args
j
=
r
.
json
()
self
.
jsonq
.
append
(
j
)
self
.
pd
(
"List json: {}"
.
format
(
j
))
l
=
j
[
'list'
]
for
f
in
l
:
rjlist
=
j
[
'list'
]
for
f
in
rjlist
:
if
f
[
'path'
]
==
remotefile
:
# case-sensitive
self
.
__remote_json
=
f
self
.
pd
(
"File info json: {}"
.
format
(
self
.
__remote_json
))
return
const
.
ENoError
return
const
.
EFileNotFound
if
len
(
l
)
==
0
else
None
return
const
.
EFileNotFound
except
KeyError
as
ex
:
perr
(
formatex
(
ex
))
return
const
.
ERequestFailed
...
...
@@ -1285,8 +1285,9 @@ Possible fixes:
'by'
:
'name'
,
# sort in case we can use binary-search, etc in the futrue.
'order'
:
'asc'
,
'limit'
:
'{}-{}'
.
format
(
listStart
,
listStart
+
const
.
MaxListEntries
)}
result
=
self
.
__get
(
pcsurl
+
'file'
,
pars
,
self
.
__get_file_info_act
,
remotefile
,
**
kwargs
)
if
result
is
not
None
:
rjlist
=
[]
result
=
self
.
__get
(
pcsurl
+
'file'
,
pars
,
self
.
__get_file_info_act
,
(
remotefile
,
rjlist
),
**
kwargs
)
if
result
==
const
.
ENoError
or
(
not
rjlist
or
len
(
rjlist
)
<
const
.
MaxListEntries
):
break
listStart
+=
const
.
MaxListEntries
return
result
...
...
bypy/const.py
浏览文件 @
60520cb2
...
...
@@ -12,7 +12,7 @@ import os
# https://packaging.python.org/single_source_version/
__title__
=
'bypy'
__version__
=
'1.6.
7
'
__version__
=
'1.6.
8
'
__author__
=
'Hou Tianze'
__license__
=
'MIT'
__desc__
=
'Python client for Baidu Yun (Personal Cloud Storage) 百度云/百度网盘 Python 客户端'
...
...
bypy/test/configdir/bypy.json
浏览文件 @
60520cb2
{
"access_token"
:
"
21.e31488969e0e452f8b1ab9685d349782.2592000.1584553337.2844184044-1572671
"
,
"access_token"
:
"
121.5d948a2096a81fcdbe4e45cc06e7cda5.YB_zcw8YqbS6865zcNp0XG1dGftmRySpfm0D3ax.ADjhbQ
"
,
"expires_in"
:
2592000
,
"refresh_token"
:
"
22.dc5ae4fe5d0e34af31d45f003f5fc918.315360000.1897321337.2844184044-1572671
"
,
"refresh_token"
:
"
122.54d28e9d1155ec77171dd733620128d4.YnJO7zTTeJNGknLPVtJsht06Q6V4C0f3F0VxVbL.1XggQg
"
,
"scope"
:
"basic netdisk"
,
"session_key"
:
""
,
"session_secret"
:
""
...
...
bypy/test/configdir/bypy.setting.json
浏览文件 @
60520cb2
{
"lastUpdateCheck"
:
158
1961333
,
"lastUpdateCheck"
:
158
9986897
,
"overwriteRemoteTempDir"
:
true
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录