summaryrefslogtreecommitdiff
path: root/bilibili/streaming.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-07 00:34:55 +0800
committerKeuin <[email protected]>2023-07-07 00:34:55 +0800
commit7fd817f6d1ead3de85294c1893a6e1572a1d12e3 (patch)
tree38b9f13104fe208449b679a2b77959dea5ab1b4e /bilibili/streaming.go
parent6eb5a7af48d04adc5625cbc8355e2556db4b992f (diff)
Refactor: move file operations into single package.
Diffstat (limited to 'bilibili/streaming.go')
-rw-r--r--bilibili/streaming.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bilibili/streaming.go b/bilibili/streaming.go
index b985bbb..9f74950 100644
--- a/bilibili/streaming.go
+++ b/bilibili/streaming.go
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
errs "github.com/keuin/slbr/bilibili/errors"
- "github.com/keuin/slbr/common"
+ "github.com/keuin/slbr/common/files"
"io"
"net/http"
"os"
@@ -106,6 +106,6 @@ copyLoop:
b.logger.Error("Stream copying was interrupted unexpectedly: %v", err)
}
- b.logger.Info("Total downloaded: %v", common.PrettyBytes(uint64(n)))
+ b.logger.Info("Total downloaded: %v", files.PrettyBytes(uint64(n)))
return err
}