feat: add support for handling unsupported stream storage in download process

This commit is contained in:
krau
2025-03-26 10:35:40 +08:00
parent 32519b8c08
commit 491ba55f1e
3 changed files with 46 additions and 28 deletions

View File

@@ -140,6 +140,10 @@ func (a *Alist) Save(ctx context.Context, reader io.Reader, storagePath string)
return nil
}
func (a *Alist) NotSupportStream() string {
return "Alist does not support chunked transfer encoding"
}
func (a *Alist) JoinStoragePath(task types.Task) string {
return path.Join(a.config.BasePath, task.StoragePath)
}