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: add support for Onedrive Sharelink driver #6793

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

Sakura-Byte
Copy link
Contributor

This driver is intended to simulate the web API request when accessing a OneDrive Business ShareLink using a web browser.
As a result, the 302 redirect will not be available, because the downloading link require a vaild header.
The cron to refresh the header per hour is enough to my experience. If you meet errors, consider to set it to a lower value.
This is also beneficial in preventing abuse of OneDrive Business.
It's even usable in the CN region (SPO operated by 21Vianet), but it's not promised.

@Sakura-Byte
Copy link
Contributor Author

Sakura-Byte commented Jul 15, 2024

HUGE Thanks to the author @gaowanliang in providing main logic when getting file list.
https://github.com/gaowanliang/OneDriveShareLinkPushAria2

@xhofe xhofe merged commit cee0000 into AlistGo:main Jul 17, 2024
3 checks passed
@xhofe
Copy link
Collaborator

xhofe commented Jul 17, 2024

close #4849

@Sakura-Byte Sakura-Byte deleted the feat-odlink-proxy branch July 23, 2024 17:02
ForSourceCodeAnalysis pushed a commit to ForSourceCodeAnalysis/alist that referenced this pull request Aug 4, 2024
* feat: add support for Onedrive Sharelink driver

* fix(Onedrive Sharelink): use internal UA
Three-taile-dragon pushed a commit to loognsss/blist that referenced this pull request Sep 26, 2024
* feat: add support for Onedrive Sharelink driver

* fix(Onedrive Sharelink): use internal UA
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.

2 participants