From f61ffe82f32b4df1d9623b32b2657b3968999fd7 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Wed, 29 Nov 2023 23:10:55 +0100 Subject: [PATCH] Use proper package namespace --- cmd/zurg/main.go | 2 +- go.mod | 2 +- internal/app.go | 16 ++++++++-------- internal/config/v1.go | 2 +- internal/dav/delete.go | 2 +- internal/dav/listing.go | 4 ++-- internal/http/listing.go | 2 +- internal/net/router.go | 10 +++++----- internal/network.go | 2 +- internal/torrent/hooks.go | 2 +- internal/torrent/manager.go | 8 ++++---- internal/torrent/types.go | 2 +- internal/universal/get.go | 10 +++++----- internal/universal/head.go | 2 +- pkg/http/client.go | 2 +- pkg/realdebrid/api.go | 2 +- 16 files changed, 35 insertions(+), 35 deletions(-) diff --git a/cmd/zurg/main.go b/cmd/zurg/main.go index 1279011..bfde2ba 100644 --- a/cmd/zurg/main.go +++ b/cmd/zurg/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/debridmediamanager.com/zurg/internal" + "github.com/debridmediamanager/zurg/internal" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index 870f141..690d6c1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/debridmediamanager.com/zurg +module github.com/debridmediamanager/zurg go 1.21.3 diff --git a/internal/app.go b/internal/app.go index e2d0790..6682e40 100644 --- a/internal/app.go +++ b/internal/app.go @@ -5,14 +5,14 @@ import ( "net/http" "os" - "github.com/debridmediamanager.com/zurg/internal/config" - "github.com/debridmediamanager.com/zurg/internal/net" - "github.com/debridmediamanager.com/zurg/internal/torrent" - "github.com/debridmediamanager.com/zurg/internal/universal" - zurghttp "github.com/debridmediamanager.com/zurg/pkg/http" - "github.com/debridmediamanager.com/zurg/pkg/logutil" - "github.com/debridmediamanager.com/zurg/pkg/realdebrid" - "github.com/debridmediamanager.com/zurg/pkg/utils" + "github.com/debridmediamanager/zurg/internal/config" + "github.com/debridmediamanager/zurg/internal/net" + "github.com/debridmediamanager/zurg/internal/torrent" + "github.com/debridmediamanager/zurg/internal/universal" + zurghttp "github.com/debridmediamanager/zurg/pkg/http" + "github.com/debridmediamanager/zurg/pkg/logutil" + "github.com/debridmediamanager/zurg/pkg/realdebrid" + "github.com/debridmediamanager/zurg/pkg/utils" "github.com/dgraph-io/ristretto" "github.com/panjf2000/ants/v2" ) diff --git a/internal/config/v1.go b/internal/config/v1.go index 030c0a4..4f81db7 100644 --- a/internal/config/v1.go +++ b/internal/config/v1.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/debridmediamanager.com/zurg/pkg/utils" + "github.com/debridmediamanager/zurg/pkg/utils" "go.uber.org/zap" "gopkg.in/yaml.v3" ) diff --git a/internal/dav/delete.go b/internal/dav/delete.go index c3c31c8..e75aed3 100644 --- a/internal/dav/delete.go +++ b/internal/dav/delete.go @@ -6,7 +6,7 @@ import ( "path" "strings" - "github.com/debridmediamanager.com/zurg/internal/torrent" + "github.com/debridmediamanager/zurg/internal/torrent" "go.uber.org/zap" ) diff --git a/internal/dav/listing.go b/internal/dav/listing.go index cab207d..37aa51e 100644 --- a/internal/dav/listing.go +++ b/internal/dav/listing.go @@ -7,8 +7,8 @@ import ( "sort" "strings" - "github.com/debridmediamanager.com/zurg/internal/torrent" - "github.com/debridmediamanager.com/zurg/pkg/dav" + "github.com/debridmediamanager/zurg/internal/torrent" + "github.com/debridmediamanager/zurg/pkg/dav" "go.uber.org/zap" ) diff --git a/internal/http/listing.go b/internal/http/listing.go index b51ed39..c1df15d 100644 --- a/internal/http/listing.go +++ b/internal/http/listing.go @@ -9,7 +9,7 @@ import ( "sort" "strings" - "github.com/debridmediamanager.com/zurg/internal/torrent" + "github.com/debridmediamanager/zurg/internal/torrent" "go.uber.org/zap" ) diff --git a/internal/net/router.go b/internal/net/router.go index 4680f81..aa41b14 100644 --- a/internal/net/router.go +++ b/internal/net/router.go @@ -5,11 +5,11 @@ import ( "path" "strings" - "github.com/debridmediamanager.com/zurg/internal/config" - "github.com/debridmediamanager.com/zurg/internal/dav" - intHttp "github.com/debridmediamanager.com/zurg/internal/http" - "github.com/debridmediamanager.com/zurg/internal/torrent" - "github.com/debridmediamanager.com/zurg/internal/universal" + "github.com/debridmediamanager/zurg/internal/config" + "github.com/debridmediamanager/zurg/internal/dav" + intHttp "github.com/debridmediamanager/zurg/internal/http" + "github.com/debridmediamanager/zurg/internal/torrent" + "github.com/debridmediamanager/zurg/internal/universal" "go.uber.org/zap" ) diff --git a/internal/network.go b/internal/network.go index d3c3e00..6f4b17f 100644 --- a/internal/network.go +++ b/internal/network.go @@ -1,6 +1,6 @@ package internal -import "github.com/debridmediamanager.com/zurg/pkg/realdebrid" +import "github.com/debridmediamanager/zurg/pkg/realdebrid" func NetworkTest() { realdebrid.RunTest() diff --git a/internal/torrent/hooks.go b/internal/torrent/hooks.go index ff15e9c..e44afb0 100644 --- a/internal/torrent/hooks.go +++ b/internal/torrent/hooks.go @@ -5,7 +5,7 @@ import ( "fmt" "os/exec" - "github.com/debridmediamanager.com/zurg/internal/config" + "github.com/debridmediamanager/zurg/internal/config" "go.uber.org/zap" ) diff --git a/internal/torrent/manager.go b/internal/torrent/manager.go index 9675642..52488f6 100644 --- a/internal/torrent/manager.go +++ b/internal/torrent/manager.go @@ -12,10 +12,10 @@ import ( "sync" "time" - "github.com/debridmediamanager.com/zurg/internal/config" - "github.com/debridmediamanager.com/zurg/pkg/dav" - "github.com/debridmediamanager.com/zurg/pkg/realdebrid" - "github.com/debridmediamanager.com/zurg/pkg/utils" + "github.com/debridmediamanager/zurg/internal/config" + "github.com/debridmediamanager/zurg/pkg/dav" + "github.com/debridmediamanager/zurg/pkg/realdebrid" + "github.com/debridmediamanager/zurg/pkg/utils" "github.com/dgraph-io/ristretto" cmap "github.com/orcaman/concurrent-map/v2" "github.com/panjf2000/ants/v2" diff --git a/internal/torrent/types.go b/internal/torrent/types.go index 7f35343..fc66243 100644 --- a/internal/torrent/types.go +++ b/internal/torrent/types.go @@ -1,7 +1,7 @@ package torrent import ( - "github.com/debridmediamanager.com/zurg/pkg/realdebrid" + "github.com/debridmediamanager/zurg/pkg/realdebrid" cmap "github.com/orcaman/concurrent-map/v2" ) diff --git a/internal/universal/get.go b/internal/universal/get.go index ab11a78..c226f7a 100644 --- a/internal/universal/get.go +++ b/internal/universal/get.go @@ -9,11 +9,11 @@ import ( "path/filepath" "strings" - "github.com/debridmediamanager.com/zurg/internal/config" - "github.com/debridmediamanager.com/zurg/internal/dav" - intHttp "github.com/debridmediamanager.com/zurg/internal/http" - intTor "github.com/debridmediamanager.com/zurg/internal/torrent" - zurghttp "github.com/debridmediamanager.com/zurg/pkg/http" + "github.com/debridmediamanager/zurg/internal/config" + "github.com/debridmediamanager/zurg/internal/dav" + intHttp "github.com/debridmediamanager/zurg/internal/http" + intTor "github.com/debridmediamanager/zurg/internal/torrent" + zurghttp "github.com/debridmediamanager/zurg/pkg/http" "go.uber.org/zap" ) diff --git a/internal/universal/head.go b/internal/universal/head.go index 49357a7..b288fe1 100644 --- a/internal/universal/head.go +++ b/internal/universal/head.go @@ -7,7 +7,7 @@ import ( "path/filepath" "strings" - "github.com/debridmediamanager.com/zurg/internal/torrent" + "github.com/debridmediamanager/zurg/internal/torrent" "go.uber.org/zap" ) diff --git a/pkg/http/client.go b/pkg/http/client.go index dbefbc0..d884d2c 100644 --- a/pkg/http/client.go +++ b/pkg/http/client.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/debridmediamanager.com/zurg/internal/config" + "github.com/debridmediamanager/zurg/internal/config" cmap "github.com/orcaman/concurrent-map/v2" "go.uber.org/zap" ) diff --git a/pkg/realdebrid/api.go b/pkg/realdebrid/api.go index e808cc9..200e086 100644 --- a/pkg/realdebrid/api.go +++ b/pkg/realdebrid/api.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - zurghttp "github.com/debridmediamanager.com/zurg/pkg/http" + zurghttp "github.com/debridmediamanager/zurg/pkg/http" "go.uber.org/zap" )