diff options
author | Keuin <[email protected]> | 2022-09-10 18:35:27 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-09-10 18:35:27 +0800 |
commit | c1b605fca10c0f58c131d5d38084f991b21eae5d (patch) | |
tree | 517b67eb136af3e520f1866b72c911296526779f | |
parent | 5a8b9c508fa186534a134bee2df705d4de95b9d9 (diff) |
Rename module path to GitHub repo.
-rw-r--r-- | bilibili/client.go | 2 | ||||
-rw-r--r-- | bilibili/danmaku_server_info.go | 2 | ||||
-rw-r--r-- | bilibili/play_url.go | 2 | ||||
-rw-r--r-- | bilibili/request.go | 2 | ||||
-rw-r--r-- | bilibili/request_test.go | 2 | ||||
-rw-r--r-- | bilibili/room_profile.go | 2 | ||||
-rw-r--r-- | bilibili/room_status.go | 2 | ||||
-rw-r--r-- | bilibili/streaming.go | 2 | ||||
-rw-r--r-- | common/retry.go | 2 | ||||
-rw-r--r-- | config.go | 2 | ||||
-rw-r--r-- | danmaku/client.go | 4 | ||||
-rw-r--r-- | danmaku/dmpkg/auth.go | 2 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | main.go | 6 | ||||
-rw-r--r-- | recording/config.go | 4 | ||||
-rw-r--r-- | recording/runner.go | 4 | ||||
-rw-r--r-- | recording/task.go | 2 | ||||
-rw-r--r-- | recording/watcher.go | 10 |
18 files changed, 27 insertions, 27 deletions
diff --git a/bilibili/client.go b/bilibili/client.go index f72432a..65d858f 100644 --- a/bilibili/client.go +++ b/bilibili/client.go @@ -5,8 +5,8 @@ This struct is a facade of all necessary Bilibili HTTP API wrappers. package bilibili import ( - "bilibili-livestream-archiver/logging" "context" + "github.com/keuin/slbr/logging" "net" "net/http" ) diff --git a/bilibili/danmaku_server_info.go b/bilibili/danmaku_server_info.go index dbdf6bb..1a91b14 100644 --- a/bilibili/danmaku_server_info.go +++ b/bilibili/danmaku_server_info.go @@ -1,8 +1,8 @@ package bilibili import ( - "bilibili-livestream-archiver/common" "fmt" + "github.com/keuin/slbr/common" ) type DanmakuServerInfoResponse = BaseResponse[danmakuInfo] diff --git a/bilibili/play_url.go b/bilibili/play_url.go index 282d556..36882bc 100644 --- a/bilibili/play_url.go +++ b/bilibili/play_url.go @@ -1,8 +1,8 @@ package bilibili import ( - "bilibili-livestream-archiver/common" "fmt" + "github.com/keuin/slbr/common" ) type RoomUrlInfoResponse = BaseResponse[roomUrlInfo] diff --git a/bilibili/request.go b/bilibili/request.go index 7de35d3..b740f6b 100644 --- a/bilibili/request.go +++ b/bilibili/request.go @@ -1,8 +1,8 @@ package bilibili import ( - "bilibili-livestream-archiver/common" "encoding/json" + "github.com/keuin/slbr/common" "io" "log" "net" diff --git a/bilibili/request_test.go b/bilibili/request_test.go index 58b7127..ed7d33e 100644 --- a/bilibili/request_test.go +++ b/bilibili/request_test.go @@ -1,7 +1,7 @@ package bilibili import ( - "bilibili-livestream-archiver/logging" + "github.com/keuin/slbr/logging" "log" "testing" ) diff --git a/bilibili/room_profile.go b/bilibili/room_profile.go index d75d447..9eed175 100644 --- a/bilibili/room_profile.go +++ b/bilibili/room_profile.go @@ -1,8 +1,8 @@ package bilibili import ( - "bilibili-livestream-archiver/common" "fmt" + "github.com/keuin/slbr/common" ) type roomProfile struct { diff --git a/bilibili/room_status.go b/bilibili/room_status.go index 6b6495b..fc6219a 100644 --- a/bilibili/room_status.go +++ b/bilibili/room_status.go @@ -5,8 +5,8 @@ This is used to check initially if it is streaming or not. package bilibili import ( - "bilibili-livestream-archiver/common" "fmt" + "github.com/keuin/slbr/common" ) type LiveStatus int diff --git a/bilibili/streaming.go b/bilibili/streaming.go index 7ad852c..308f06a 100644 --- a/bilibili/streaming.go +++ b/bilibili/streaming.go @@ -1,10 +1,10 @@ package bilibili import ( - "bilibili-livestream-archiver/common" "context" "errors" "fmt" + "github.com/keuin/slbr/common" "net/http" "os" "strings" diff --git a/common/retry.go b/common/retry.go index 647e8ad..471527c 100644 --- a/common/retry.go +++ b/common/retry.go @@ -1,8 +1,8 @@ package common import ( - "bilibili-livestream-archiver/logging" "context" + "github.com/keuin/slbr/logging" "time" ) @@ -1,6 +1,6 @@ package main -import "bilibili-livestream-archiver/recording" +import "github.com/keuin/slbr/recording" type GlobalConfig struct { Tasks []recording.TaskConfig `mapstructure:"tasks"` diff --git a/danmaku/client.go b/danmaku/client.go index 7745761..3a1298d 100644 --- a/danmaku/client.go +++ b/danmaku/client.go @@ -7,10 +7,10 @@ The Bilibili WebSocket channel protocol is decoupled and implemented in package package danmaku import ( - "bilibili-livestream-archiver/common" - "bilibili-livestream-archiver/danmaku/dmpkg" "context" "fmt" + "github.com/keuin/slbr/common" + "github.com/keuin/slbr/danmaku/dmpkg" "nhooyr.io/websocket" ) diff --git a/danmaku/dmpkg/auth.go b/danmaku/dmpkg/auth.go index c9720ea..c39fbd9 100644 --- a/danmaku/dmpkg/auth.go +++ b/danmaku/dmpkg/auth.go @@ -6,9 +6,9 @@ it sends this message at first. The server then responses a OpConnectOk exchange package dmpkg import ( - "bilibili-livestream-archiver/common" "encoding/json" "fmt" + "github.com/keuin/slbr/common" ) type authInfo struct { @@ -1,4 +1,4 @@ -module bilibili-livestream-archiver +module github.com/keuin/slbr go 1.18 @@ -6,12 +6,12 @@ Task lifecycle management are implemented in recording package. */ import ( - "bilibili-livestream-archiver/common" - "bilibili-livestream-archiver/logging" - "bilibili-livestream-archiver/recording" "context" "fmt" "github.com/akamensky/argparse" + "github.com/keuin/slbr/common" + "github.com/keuin/slbr/logging" + "github.com/keuin/slbr/recording" "github.com/spf13/viper" "log" "os" diff --git a/recording/config.go b/recording/config.go index c38d73f..76a6f3a 100644 --- a/recording/config.go +++ b/recording/config.go @@ -1,9 +1,9 @@ package recording import ( - "bilibili-livestream-archiver/bilibili" - "bilibili-livestream-archiver/common" "fmt" + "github.com/keuin/slbr/bilibili" + "github.com/keuin/slbr/common" ) type TaskConfig struct { diff --git a/recording/runner.go b/recording/runner.go index 4f3b1f5..2830ee7 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -6,12 +6,12 @@ The config can be load from a config file. package recording import ( - "bilibili-livestream-archiver/bilibili" - "bilibili-livestream-archiver/common" "context" "encoding/json" "errors" "fmt" + "github.com/keuin/slbr/bilibili" + "github.com/keuin/slbr/common" "os" "path" "time" diff --git a/recording/task.go b/recording/task.go index 9aa41a8..3d417ba 100644 --- a/recording/task.go +++ b/recording/task.go @@ -6,9 +6,9 @@ Concrete task works are done in the `runner.go` file. */ import ( - "bilibili-livestream-archiver/logging" "context" "fmt" + "github.com/keuin/slbr/logging" ) type TaskStatus int diff --git a/recording/watcher.go b/recording/watcher.go index cda0a3c..4ae17b7 100644 --- a/recording/watcher.go +++ b/recording/watcher.go @@ -1,14 +1,14 @@ package recording import ( - "bilibili-livestream-archiver/common" - "bilibili-livestream-archiver/danmaku" - "bilibili-livestream-archiver/danmaku/dmmsg" - "bilibili-livestream-archiver/danmaku/dmpkg" - "bilibili-livestream-archiver/logging" "context" "encoding/json" "fmt" + "github.com/keuin/slbr/common" + "github.com/keuin/slbr/danmaku" + "github.com/keuin/slbr/danmaku/dmmsg" + "github.com/keuin/slbr/danmaku/dmpkg" + "github.com/keuin/slbr/logging" "time" ) |