Skip to content

feat: add support for Onedrive Sharelink driver#6793

Merged
xhofe merged 2 commits intoAlistGo:mainfrom
Sakura-Pub:feat-odlink-proxy
Jul 17, 2024
Merged

feat: add support for Onedrive Sharelink driver#6793
xhofe merged 2 commits intoAlistGo:mainfrom
Sakura-Pub:feat-odlink-proxy

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
@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
fsca8 pushed a commit to fsca8/alist that referenced this pull request Aug 4, 2024
* feat: add support for Onedrive Sharelink driver

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