Update module to v2

This commit is contained in:
bytedream 2022-05-01 13:25:43 +02:00
parent a49e65e151
commit 80b0784f50
9 changed files with 12 additions and 12 deletions

View file

@ -8,8 +8,8 @@ import (
"compress/gzip" "compress/gzip"
"context" "context"
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go" "github.com/ByteDream/crunchyroll-go/v2"
"github.com/ByteDream/crunchyroll-go/utils" "github.com/ByteDream/crunchyroll-go/v2/utils"
"github.com/grafov/m3u8" "github.com/grafov/m3u8"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"io" "io"

View file

@ -3,8 +3,8 @@ package cmd
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go" "github.com/ByteDream/crunchyroll-go/v2"
"github.com/ByteDream/crunchyroll-go/utils" "github.com/ByteDream/crunchyroll-go/v2/utils"
"github.com/grafov/m3u8" "github.com/grafov/m3u8"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"os" "os"

View file

@ -2,7 +2,7 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go" "github.com/ByteDream/crunchyroll-go/v2"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"os" "os"
"os/user" "os/user"

View file

@ -3,7 +3,7 @@ package cmd
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go" "github.com/ByteDream/crunchyroll-go/v2"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"net/http" "net/http"
"os" "os"

View file

@ -2,8 +2,8 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ByteDream/crunchyroll-go" "github.com/ByteDream/crunchyroll-go/v2"
"github.com/ByteDream/crunchyroll-go/utils" "github.com/ByteDream/crunchyroll-go/v2/utils"
"net/http" "net/http"
"net/url" "net/url"
"os" "os"

View file

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/ByteDream/crunchyroll-go/cmd/crunchyroll-go/cmd" "github.com/ByteDream/crunchyroll-go/v2/cmd/crunchyroll-go/cmd"
) )
func main() { func main() {

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/ByteDream/crunchyroll-go module github.com/ByteDream/crunchyroll-go/v2
go 1.16 go 1.16

View file

@ -1,7 +1,7 @@
package utils package utils
import ( import (
"github.com/ByteDream/crunchyroll-go" "github.com/ByteDream/crunchyroll-go/v2"
) )
// AllLocales is an array of all available locales. // AllLocales is an array of all available locales.

View file

@ -1,7 +1,7 @@
package utils package utils
import ( import (
"github.com/ByteDream/crunchyroll-go" "github.com/ByteDream/crunchyroll-go/v2"
"sort" "sort"
"strconv" "strconv"
"strings" "strings"