From c1b605fca10c0f58c131d5d38084f991b21eae5d Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 10 Sep 2022 18:35:27 +0800 Subject: Rename module path to GitHub repo. --- bilibili/client.go | 2 +- bilibili/danmaku_server_info.go | 2 +- bilibili/play_url.go | 2 +- bilibili/request.go | 2 +- bilibili/request_test.go | 2 +- bilibili/room_profile.go | 2 +- bilibili/room_status.go | 2 +- bilibili/streaming.go | 2 +- common/retry.go | 2 +- config.go | 2 +- danmaku/client.go | 4 ++-- danmaku/dmpkg/auth.go | 2 +- go.mod | 2 +- main.go | 6 +++--- recording/config.go | 4 ++-- recording/runner.go | 4 ++-- recording/task.go | 2 +- 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" ) diff --git a/config.go b/config.go index 8d3f8f1..078b949 100644 --- a/config.go +++ b/config.go @@ -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 { diff --git a/go.mod b/go.mod index 670d252..2afbc9a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module bilibili-livestream-archiver +module github.com/keuin/slbr go 1.18 diff --git a/main.go b/main.go index 523e348..bf3b10a 100644 --- a/main.go +++ b/main.go @@ -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" ) -- cgit v1.2.3