Skip to content
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: refactor offline download (#5331) #5408

Merged
merged 11 commits into from Nov 6, 2023
Merged

Conversation

xhofe
Copy link
Member

@xhofe xhofe commented Oct 20, 2023

Working on #4108

* base tool

* working: aria2
commit 4fc0a77
Author: Andy Hsu <i@nn.ci>
Date:   Fri Oct 20 21:06:25 2023 +0800

    fix(baidu_netdisk): upload file > 4GB (close #5392)

commit aaffaee
Author: gmugu <94156510@qq.com>
Date:   Thu Oct 19 19:17:53 2023 +0800

    perf(webdav): support request with cookies (#5391)

commit 8ef8023
Author: NewbieOrange <NewbieOrange@users.noreply.github.com>
Date:   Thu Oct 19 19:17:09 2023 +0800

    fix(aliyundrive_open): upload progress for normal upload (#5398)

commit cdfbe6d
Author: foxxorcat <95907542+foxxorcat@users.noreply.github.com>
Date:   Wed Oct 18 16:27:07 2023 +0800

    fix: hash gcid empty file (#5394)

commit 94d0287
Author: Andy Hsu <i@nn.ci>
Date:   Sat Oct 14 13:17:51 2023 +0800

    ci: remove `pr-welcome` label when close issue [skip ci]

commit 7f73354
Author: itsHenry <2671230065@qq.com>
Date:   Sat Oct 14 13:12:46 2023 +0800

    feat(cloudreve): support thumbnail (#5373 close #5348)

    * feat(cloudreve): support thumbnail

    * chore: remove unnecessary code

commit b9e192b
Author: foxxorcat <95907542+foxxorcat@users.noreply.github.com>
Date:   Thu Oct 12 20:57:12 2023 +0800

    fix(115): limit request rate (#5367 close #5275)

    * fix(115):limit request rate

    * chore(115): fix unit of `limit_rate`

    ---------

    Co-authored-by: Andy Hsu <i@nn.ci>

commit 69a98ea
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Oct 11 22:01:55 2023 +0800

    fix(deps): update module github.com/aliyun/aliyun-oss-go-sdk to v2.2.9+incompatible (#5141)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

commit 1ebc96a
Author: Andy Hsu <i@nn.ci>
Date:   Tue Oct 10 18:32:00 2023 +0800

    fix(wopan): fatal error concurrent map writes (close #5352)

commit 66e2324
Author: Andy Hsu <i@nn.ci>
Date:   Tue Oct 10 18:23:11 2023 +0800

    chore(deps): upgrade dependencies

commit 7600dc2
Author: Andy Hsu <i@nn.ci>
Date:   Tue Oct 10 18:13:58 2023 +0800

    fix(aliyundrive_open): change default api to raw server (close #5358)

commit 8ef89ad
Author: foxxorcat <95907542+foxxorcat@users.noreply.github.com>
Date:   Tue Oct 10 18:08:27 2023 +0800

    fix(baidu_netdisk): hash and `error 2` (#5356)

    * fix(baidu):hash and error:2

    * fix:invalid memory address

commit 35d6722
Author: jeffmingup <1960588251@qq.com>
Date:   Sun Oct 8 19:29:45 2023 +0800

    fix(onedrive_app): incorrect api on `_accessToken` (#5346)

commit 1a283bb
Author: foxxorcat <95907542+foxxorcat@users.noreply.github.com>
Date:   Fri Oct 6 16:04:39 2023 +0800

    feat(google_drive): add `hash_info`, `ctime`, `thumbnail` (#5334)

commit a008f54
Author: nkh0472 <67589323+nkh0472@users.noreply.github.com>
Date:   Thu Oct 5 13:10:51 2023 +0800

    docs: minor language improvements (#5329) [skip ci]
commit 65c5ec0
Author: itsHenry <2671230065@qq.com>
Date:   Sat Nov 4 13:35:09 2023 +0800

    feat(cloudreve): folder size count and switch (#5457 close #5395)

commit a632596
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Mon Oct 30 15:11:20 2023 +0800

    fix(deps): update module github.com/charmbracelet/lipgloss to v0.9.1 (#5234)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

commit 4dff494
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Mon Oct 30 15:10:36 2023 +0800

    fix(deps): update golang.org/x/exp digest to 7918f67 (#5366)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

commit cc86d6f
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Sun Oct 29 14:45:55 2023 +0800

    fix(deps): update module golang.org/x/net to v0.17.0 [security] (#5370)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

commit c0f9c8e
Author: Andy Hsu <i@nn.ci>
Date:   Thu Oct 26 19:21:09 2023 +0800

    feat: add ignore direct link params (close #5434)
@xhofe xhofe changed the title wip: refactor offline download (#5331) feat: refactor offline download (#5331) Nov 6, 2023
@xhofe xhofe merged commit 769281b into main Nov 6, 2023
1 check passed
truecharts-admin added a commit to truecharts/charts that referenced this pull request Nov 25, 2023
…15347)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [xhofe/alist](https://togithub.com/alist-org/alist) | minor |
`v3.28.0` -> `v3.29.1` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>alist-org/alist (xhofe/alist)</summary>

###
[`v3.29.1`](https://togithub.com/alist-org/alist/releases/tag/v3.29.1)

[Compare
Source](https://togithub.com/alist-org/alist/compare/v3.29.0...v3.29.1)

#####    🐞 Bug Fixes

- Task popped but not execute  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5565
[<samp>(68af2)</samp>](https://togithub.com/alist-org/alist/commit/68af284)

#####     [View changes on
GitHub](https://togithub.com/alist-org/alist/compare/v3.29.0...v3.29.1)

###
[`v3.29.0`](https://togithub.com/alist-org/alist/releases/tag/v3.29.0)

[Compare
Source](https://togithub.com/alist-org/alist/compare/v3.28.0...v3.29.0)

#####    🚀 Features

- Add `header` to `meta`  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5317
[<samp>(9ff83)</samp>](https://togithub.com/alist-org/alist/commit/9ff83a7)
- Add ignore direct link params  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5434
[<samp>(c0f9c)</samp>](https://togithub.com/alist-org/alist/commit/c0f9c8e)
- Refactor offline download
([#&#8203;5408](https://togithub.com/alist-org/alist/issues/5408) close
[#&#8203;4108](https://togithub.com/alist-org/alist/issues/4108))  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) and
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[alist-org/alist#5408
and[alist-org/alist#4108
[<samp>(76928)</samp>](https://togithub.com/alist-org/alist/commit/769281b)
- Add `115_share` driver
([#&#8203;5481](https://togithub.com/alist-org/alist/issues/5481) close
[#&#8203;5384](https://togithub.com/alist-org/alist/issues/5384))  -  by
[@&#8203;SheltonZhu](https://togithub.com/SheltonZhu) in
[alist-org/alist#5481
and
[alist-org/alist#5384
[<samp>(da1c7)</samp>](https://togithub.com/alist-org/alist/commit/da1c7a4)
- Invalidate old token after changing the password  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5515
[<samp>(3d518)</samp>](https://togithub.com/alist-org/alist/commit/3d51845)
- Support using external dist files  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5531
[<samp>(6fc67)</samp>](https://togithub.com/alist-org/alist/commit/6fc6751)
- Refactor task module  -  by
[@&#8203;xhofe](https://togithub.com/xhofe)
[<samp>(11a30)</samp>](https://togithub.com/alist-org/alist/commit/11a30c5)
- Customize workers and retry of task (close
[#&#8203;5493](https://togithub.com/alist-org/alist/issues/5493) fix
[#&#8203;5274](https://togithub.com/alist-org/alist/issues/5274))  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5493
and
[alist-org/alist#5274
[<samp>(7583c)</samp>](https://togithub.com/alist-org/alist/commit/7583c4d)
- Retry all failed task  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5242
[<samp>(b2890)</samp>](https://togithub.com/alist-org/alist/commit/b2890f0)
- Add chaoxing and vtencent driver
([#&#8203;5526](https://togithub.com/alist-org/alist/issues/5526) close
[#&#8203;3347](https://togithub.com/alist-org/alist/issues/3347))  -  by
[@&#8203;msterzhang](https://togithub.com/msterzhang) in
[alist-org/alist#5526
and
[alist-org/alist#3347
[<samp>(12800)</samp>](https://togithub.com/alist-org/alist/commit/1280070)
- Allow keep files in offline download  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#4678
[<samp>(b6134)</samp>](https://togithub.com/alist-org/alist/commit/b6134dc)
- Customize allow `origins`, `headers` and `methods`  -  by
[@&#8203;xhofe](https://togithub.com/xhofe)
[<samp>(3f405)</samp>](https://togithub.com/alist-org/alist/commit/3f405de)
-   **cloudreve**:
- Support thumbnail
([#&#8203;5373](https://togithub.com/alist-org/alist/issues/5373) close
[#&#8203;5348](https://togithub.com/alist-org/alist/issues/5348))  -  by
[@&#8203;itsHenry35](https://togithub.com/itsHenry35) in
[alist-org/alist#5373
and
[alist-org/alist#5348
[<samp>(7f733)</samp>](https://togithub.com/alist-org/alist/commit/7f73354)
- Folder size count and switch
([#&#8203;5457](https://togithub.com/alist-org/alist/issues/5457) close
[#&#8203;5395](https://togithub.com/alist-org/alist/issues/5395))  -  by
[@&#8203;itsHenry35](https://togithub.com/itsHenry35) in
[alist-org/alist#5457
and
[alist-org/alist#5395
[<samp>(65c5e)</samp>](https://togithub.com/alist-org/alist/commit/65c5ec0)
-   **crypt**:
- Optional pre-generated thumbnails  -  by
[@&#8203;chaoqing](https://togithub.com/chaoqing) in
[alist-org/alist#5284
[<samp>(fb13d)</samp>](https://togithub.com/alist-org/alist/commit/fb13dae)
- Add show hidden option  -  by
[@&#8203;textrix](https://togithub.com/textrix) in
[alist-org/alist#5554
[<samp>(fe34d)</samp>](https://togithub.com/alist-org/alist/commit/fe34d30)
-   **google_drive**:
- Add `hash_info`, `ctime`, `thumbnail`  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) in
[alist-org/alist#5334
[<samp>(1a283)</samp>](https://togithub.com/alist-org/alist/commit/1a283bb)
-   **offline_download**:
- Add simple http tool  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#4002
[<samp>(34746)</samp>](https://togithub.com/alist-org/alist/commit/34746e9)
-   **onedrive**:
- Custom host for download link  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5310
[<samp>(0fd51)</samp>](https://togithub.com/alist-org/alist/commit/0fd5164)
-   **sso**:
- Custom username key for `OIDC`  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5169
[<samp>(e719a)</samp>](https://togithub.com/alist-org/alist/commit/e719a1a)
-   **webdav**:
- Add `tls_insecure_skip_verify` field  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5490
[<samp>(91f51)</samp>](https://togithub.com/alist-org/alist/commit/91f51f1)

#####    🐞 Bug Fixes

- Hash gcid empty file  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) in
[alist-org/alist#5394
[<samp>(cdfbe)</samp>](https://togithub.com/alist-org/alist/commit/cdfbe6d)
- Incorrect content-type of apk files  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5385
[<samp>(4355d)</samp>](https://togithub.com/alist-org/alist/commit/4355dae)
- Reflected XSS vulnerability plist api  -  by
[@&#8203;xhofe](https://togithub.com/xhofe)
[<samp>(61006)</samp>](https://togithub.com/alist-org/alist/commit/6100647)
- `content-type` conflicts with
[#&#8203;5420](https://togithub.com/alist-org/alist/issues/5420)  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5420
[<samp>(d2688)</samp>](https://togithub.com/alist-org/alist/commit/d26887d)
-   **115**:
- Allow use proxy directly  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5324
[<samp>(e8958)</samp>](https://togithub.com/alist-org/alist/commit/e895801)
- Limit request rate
([#&#8203;5367](https://togithub.com/alist-org/alist/issues/5367) close
[#&#8203;5275](https://togithub.com/alist-org/alist/issues/5275))  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) and
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5367
and
[alist-org/alist#5275
[<samp>(b9e19)</samp>](https://togithub.com/alist-org/alist/commit/b9e192b)
- Fix driver package import and variable  -  by
[@&#8203;SheltonZhu](https://togithub.com/SheltonZhu) in
[alist-org/alist#5482
[<samp>(3bbdd)</samp>](https://togithub.com/alist-org/alist/commit/3bbdd4f)
-   **aliyundrive_open**:
- Change default api to raw server  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5358
[<samp>(7600d)</samp>](https://togithub.com/alist-org/alist/commit/7600dc2)
- Upload progress for normal upload  -  by
[@&#8203;NewbieOrange](https://togithub.com/NewbieOrange) in
[alist-org/alist#5398
[<samp>(8ef80)</samp>](https://togithub.com/alist-org/alist/commit/8ef8023)
- Mitigation measures for 15-minute limit
([#&#8203;5560](https://togithub.com/alist-org/alist/issues/5560) close
[#&#8203;5547](https://togithub.com/alist-org/alist/issues/5547))  -  by
[@&#8203;BlueSkyXN](https://togithub.com/BlueSkyXN) and
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5560
and
[alist-org/alist#5547
[<samp>(0fbb9)</samp>](https://togithub.com/alist-org/alist/commit/0fbb986)
-   **baidu_netdisk**:
- Hash and `error 2`  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) in
[alist-org/alist#5356
[<samp>(8ef89)</samp>](https://togithub.com/alist-org/alist/commit/8ef89ad)
- Upload file > 4GB  -  by [@&#8203;xhofe](https://togithub.com/xhofe)
in
[alist-org/alist#5392
[<samp>(4fc0a)</samp>](https://togithub.com/alist-org/alist/commit/4fc0a77)
-   **deps**:
- Update module github.com/ipfs/go-ipfs-api to v0.7.0  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[alist-org/alist#5247
[<samp>(eb918)</samp>](https://togithub.com/alist-org/alist/commit/eb91865)
- Update module github.com/aliyun/aliyun-oss-go-sdk to
v2.2.9+incompatible  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[alist-org/alist#5141
[<samp>(69a98)</samp>](https://togithub.com/alist-org/alist/commit/69a98ea)
- Update module golang.org/x/net to v0.17.0 \[security]  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[alist-org/alist#5370
[<samp>(cc86d)</samp>](https://togithub.com/alist-org/alist/commit/cc86d6f)
- Update golang.org/x/exp digest to
[`7918f67`](https://togithub.com/alist-org/alist/commit/7918f67)  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[alist-org/alist#5366
[<samp>(4dff4)</samp>](https://togithub.com/alist-org/alist/commit/4dff494)
- Update module github.com/charmbracelet/lipgloss to v0.9.1  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[alist-org/alist#5234
[<samp>(a6325)</samp>](https://togithub.com/alist-org/alist/commit/a632596)
- Update module github.com/aws/aws-sdk-go to v1.46.7  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[alist-org/alist#5068
[<samp>(a7421)</samp>](https://togithub.com/alist-org/alist/commit/a7421d8)
-   **local**:
- Video file thumbnails not displaying on iOS Safari  -  by
[@&#8203;gmugu](https://togithub.com/gmugu) in
[alist-org/alist#5420
[<samp>(867ac)</samp>](https://togithub.com/alist-org/alist/commit/867acca)
-   **mopan**:
- 302 Redirect
([#&#8203;5505](https://togithub.com/alist-org/alist/issues/5505) close
[#&#8203;5502](https://togithub.com/alist-org/alist/issues/5502))  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) and
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5505
and
[alist-org/alist#5502
[<samp>(55a14)</samp>](https://togithub.com/alist-org/alist/commit/55a14bc)
-   **onedrive_app**:
- Incorrect api on `_accessToken`  -  by
[@&#8203;jeffmingup](https://togithub.com/jeffmingup) in
[alist-org/alist#5346
[<samp>(35d67)</samp>](https://togithub.com/alist-org/alist/commit/35d6722)
-   **terabox**:
- Auto refresh `JsToken`  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5277
[<samp>(6b67a)</samp>](https://togithub.com/alist-org/alist/commit/6b67a36)
- Encode parameters for `filemanager` api  -  by
[@&#8203;URenko](https://togithub.com/URenko) in
[alist-org/alist#5308
[<samp>(e1ef6)</samp>](https://togithub.com/alist-org/alist/commit/e1ef690)
-   **vtencent**:
- Hack file with size 0 but actual size is not 0  -  by
[@&#8203;xhofe](https://togithub.com/xhofe)
[<samp>(d455a)</samp>](https://togithub.com/alist-org/alist/commit/d455a23)
-   **weiyun**:
- Unmarshal overflow  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) in
[alist-org/alist#5459
[<samp>(68f44)</samp>](https://togithub.com/alist-org/alist/commit/68f440a)
-   **wopan**:
- Fatal error concurrent map writes  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[alist-org/alist#5352
[<samp>(1ebc9)</samp>](https://togithub.com/alist-org/alist/commit/1ebc96a)

#####    🏎 Performance

- **webdav**: Support request with cookies  -  by
[@&#8203;gmugu](https://togithub.com/gmugu) in
[alist-org/alist#5391
[<samp>(aaffa)</samp>](https://togithub.com/alist-org/alist/commit/aaffaee)

#####     [View changes on
GitHub](https://togithub.com/alist-org/alist/compare/v3.28.0...v3.29.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42OC4wIiwidXBkYXRlZEluVmVyIjoiMzcuNjguMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant