-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(drivers): add the support for Trainbit #3813
Conversation
read only
modify the structure of code allow to create folder, move, rename and remove
allow to upload file
get token from page
Thanks for opening this pull request! Please check out our contributing guidelines. |
大概瞅了下 好像不适合存储文件诶~ 免费的话 |
display progress of updating
这个好像只是写在上面,但没有实际执行,我有文件一年多没被下载也还在,网上我也查到过时间更长的案例 |
好吧,如果你 add 完毕了可以开启一下自动构建~ |
fix bug of time zone
如果我没获取错误的话 添加完提示 使用的是 https://github.com/alist-org/alist/actions/runs/4395602772 这个build 构建的版本 |
好像还是不行诶? {
"result": 0,
"items": [
{
"id": "0",
"name": "",
"ext": "",
"tag": "",
"ty": -1,
"modified": "",
"byte": 0,
"size": "0",
"perm": 1,
"subscription": 0,
"pwd": "",
"parent": "0",
"dlmode": 0,
"banstat": 0,
"subscribers": 0,
"cntdl": 0,
"tinylink": "",
"accesslevel": 0,
"sharestat": 0,
"invitestat": 0,
"isowner": 0,
"viewable": 1,
"cdn": 0,
"uploadurl": "/{0}/?q=623xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxD",
"uploadurl2": "/{0}/?p=0-1073119-0-1073119"
},
{
"id": "8585892484",
"name": "images",
"ext": "",
"tag": "",
"ty": 1,
"modified": "2023/03/12 10:29:35",
"byte": 14925890,
"size": "14.23 MB",
"perm": 1,
"subscription": 1,
"pwd": "",
"parent": "",
"dlmode": 0,
"banstat": 0,
"subscribers": 0,
"cntdl": 0,
"tinylink": "",
"accesslevel": 14,
"sharestat": 0,
"invitestat": 0,
"isowner": 1,
"viewable": 0,
"cdn": 0,
"uploadurl": "/{0}/?q=456Bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6686D63664E",
"uploadurl2": "/{0}/?p=1015218181-1073119-0-1073119"
},
{
"id": "7585892484",
"name": "video",
"ext": "",
"tag": "",
"ty": 1,
"modified": "2023/03/12 10:29:28",
"byte": 10067003,
"size": "9.6 MB",
"perm": 1,
"subscription": 1,
"pwd": "",
"parent": "",
"dlmode": 0,
"banstat": 0,
"subscribers": 0,
"cntdl": 0,
"tinylink": "",
"accesslevel": 14,
"sharestat": 0,
"invitestat": 0,
"isowner": 1,
"viewable": 0,
"cdn": 0,
"uploadurl": "/{0}/?q=3549xxxxxxxxxxxxxxxxxxxxx43315177664150",
"uploadurl2": "/{0}/?p=1015218180-1073119-0-1073119"
}
]
} |
是的 还是返回 之前的错误
|
人看是正常的,但是这个driver会把它当base64解析,解析不出来,就报错了 |
emmm 这怎么搞 哈哈... |
|
用alist上传文件,或者我再改改,换个更好的方法 |
emmm 把那些都删了(清空了只剩下文件夹了 倒是能打开了) |
build一下咯 我试试看~ 哈哈 |
刚刚又发现些问题,还要改 |
顺便也把 0 后面的缩短一下吧~太长了删除都费劲~~ |
改好了,网站在上传文件时会自动做一次URL解码,所以上传文件时要编码两次,改名时编码一次,读取文件的时候解码一次,和,如果解码失败就显示原始名称 |
OK 等build好了我试试看~(可以使用它们官网上传的文件是吗) |
是的 |
已经解决,现在为了支持修改扩展名,driver会在文件名后附加 |
OK 现在能用了 就先不管了暂时 哈哈... |
等等,我还有个地方要修 |
好了 |
报错了? 没启动build |
我看看 以及多个 |
……第一次contribute 每次commit都需要我 approve才可以运行ci |
还有就是他还给 PNG 格式的 后面加了个小写的 png |
好吧 这样啊~ 不过确实报错了 哈哈 |
fix the bug of filename
这是因为之前和现在对这种情况的处理方式不一样,现在重新上传一个就不会这样了 |
嗯呐 等这次build好试试 应该是 End 版了吧 哈哈 |
嗯 现在没啥问题了,如果是在官方页面上传的 没有 |
是的
…________________________________
发件人: 安稳 ***@***.***>
发送时间: 2023年3月12日 21:57
收件人: alist-org/alist ***@***.***>
抄送: Night Space ***@***.***>; Author ***@***.***>
主题: Re: [alist-org/alist] feat(drivers): add the support for Trainbit (PR #3813)
嗯 现在没啥问题了,如果是在官方页面上传的 没有 .delete_suffix. 这个是吧~
―
Reply to this email directly, view it on GitHub<#3813 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APGSPXSNRVRVZE3T3ATH52DW3XI57ANCNFSM6AAAAAAVXQBXNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Congrats on merging your first pull request! We here at behavior bot are proud of you! |
添加对Trainbit的支持,网站没有提供复制文件的接口,因此没有实现复制操作