feat(thunder): add offline download tool (#7673)

* feat(thunder): add offline download tool

* fix(thunder): improve error handling and parse file size in status response

---------

Co-authored-by: Andy Hsu <i@nn.ci>
This commit is contained in:
Jealous
2024-12-25 21:23:58 +08:00
committed by GitHub
parent 48916cdedf
commit 42243b1517
8 changed files with 288 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import (
const (
API_URL = "https://api-pan.xunlei.com/drive/v1"
FILE_API_URL = API_URL + "/files"
TASK_API_URL = API_URL + "/tasks"
XLUSER_API_URL = "https://xluser-ssl.xunlei.com/v1"
)