Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
pandownload.com_Pages_Backup
提交
05df30fa
P
pandownload.com_Pages_Backup
项目概览
OpenDocCN
/
pandownload.com_Pages_Backup
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pandownload.com_Pages_Backup
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
05df30fa
编写于
4月 16, 2020
作者:
W
Womsxd
提交者:
GitHub
4月 16, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add files via upload
上级
658d45e8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
0 deletion
+23
-0
static/scripts/default_0.6.7_3fee3733
static/scripts/default_0.6.7_3fee3733
+0
-0
static/scripts/download_pcs.lua
static/scripts/download_pcs.lua
+23
-0
static/scripts/s008
static/scripts/s008
+0
-0
static/user_agent_switcher_1_0_43_0.crx
static/user_agent_switcher_1_0_43_0.crx
+0
-0
未找到文件。
static/scripts/default_0.6.7_3fee3733
0 → 100644
浏览文件 @
05df30fa
文件已添加
static/scripts/download_pcs.lua
0 → 100644
浏览文件 @
05df30fa
script_info
=
{
[
"title"
]
=
"PCS接口"
,
[
"version"
]
=
"0.0.1"
,
[
"description"
]
=
"非超级会员账号请将并行任务数设置为1"
,
}
function
onInitTask
(
task
,
user
,
file
)
if
task
:
getType
()
~=
TASK_TYPE_BAIDU
then
return
false
end
if
user
==
nil
then
task
:
setError
(
-
1
,
"用户未登录"
)
return
true
end
local
appid
=
778750
if
user
:
isSVIP
()
then
appid
=
250528
end
task
:
setUris
(
"http://pcs.baidu.com/rest/2.0/pcs/file?method=download&path="
..
pd
.
urlEncode
(
file
.
path
)
..
"&app_id="
..
appid
)
task
:
setOptions
(
"user-agent"
,
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
)
task
:
setOptions
(
"header"
,
"Cookie: "
..
user
:
getCookie
())
return
true
end
\ No newline at end of file
static/scripts/s008
0 → 100644
浏览文件 @
05df30fa
文件已添加
static/user_agent_switcher_1_0_43_0.crx
0 → 100644
浏览文件 @
05df30fa
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录