mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 20:26:26 +08:00
fix(mediafire): fix code errors in mediafire
This commit is contained in:
@ -6,6 +6,9 @@ Author: Da3zKi7<da3zki7@duck.com>
|
|||||||
Date: 2025-09-11
|
Date: 2025-09-11
|
||||||
|
|
||||||
D@' 3z K!7 - The King Of Cracking
|
D@' 3z K!7 - The King Of Cracking
|
||||||
|
|
||||||
|
Modifications by ILoveScratch2<ilovescratch@foxmail.com>
|
||||||
|
Date: 2025-09-14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -331,7 +334,7 @@ func (d *Mediafire) Put(ctx context.Context, dstDir model.Obj, file model.FileSt
|
|||||||
|
|
||||||
func (d *Mediafire) PutResult(ctx context.Context, dstDir model.Obj, file model.FileStreamer, up driver.UpdateProgress) (model.Obj, error) {
|
func (d *Mediafire) PutResult(ctx context.Context, dstDir model.Obj, file model.FileStreamer, up driver.UpdateProgress) (model.Obj, error) {
|
||||||
|
|
||||||
tempFile, err := file.CacheFullInTempFile()
|
tempFile, err := file.CacheFullAndWriter(&up, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,9 @@ Author: Da3zKi7<da3zki7@duck.com>
|
|||||||
Date: 2025-09-11
|
Date: 2025-09-11
|
||||||
|
|
||||||
D@' 3z K!7 - The King Of Cracking
|
D@' 3z K!7 - The King Of Cracking
|
||||||
|
|
||||||
|
Modifications by ILoveScratch2<ilovescratch@foxmail.com>
|
||||||
|
Date: 2025-09-14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -28,7 +31,7 @@ type Addition struct {
|
|||||||
var config = driver.Config{
|
var config = driver.Config{
|
||||||
Name: "MediaFire",
|
Name: "MediaFire",
|
||||||
LocalSort: false,
|
LocalSort: false,
|
||||||
OnlyLocal: false,
|
OnlyLinkMFile: false,
|
||||||
OnlyProxy: false,
|
OnlyProxy: false,
|
||||||
NoCache: false,
|
NoCache: false,
|
||||||
NoUpload: false,
|
NoUpload: false,
|
||||||
|
Reference in New Issue
Block a user