Change author names and links to crunchy-labs

This commit is contained in:
bytedream 2022-07-26 12:47:23 +02:00
parent 5b4c228b60
commit 2773445050
14 changed files with 56 additions and 56 deletions

View file

@ -5,8 +5,8 @@ import (
"bytes"
"context"
"fmt"
"github.com/ByteDream/crunchy-cli/cli/commands"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/cli/commands"
"github.com/crunchy-labs/crunchy-cli/utils"
"github.com/crunchy-labs/crunchyroll-go/v3"
crunchyUtils "github.com/crunchy-labs/crunchyroll-go/v3/utils"
"github.com/grafov/m3u8"
@ -185,7 +185,7 @@ func archive(urls []string) error {
utils.Log.StopProcess("Failed to parse url %d", i+1)
if utils.Crunchy.Config.Premium {
utils.Log.Debug("If the error says no episodes could be found but the passed url is correct and a crunchyroll classic url, " +
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/ByteDream/crunchy-cli/issues/22 for more information")
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/crunchy-labs/crunchy-cli/issues/22 for more information")
}
return err
}

View file

@ -6,7 +6,7 @@ import (
"bytes"
"compress/gzip"
"fmt"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/utils"
"io"
"os"
"path/filepath"

View file

@ -3,8 +3,8 @@ package download
import (
"context"
"fmt"
"github.com/ByteDream/crunchy-cli/cli/commands"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/cli/commands"
"github.com/crunchy-labs/crunchy-cli/utils"
"github.com/crunchy-labs/crunchyroll-go/v3"
crunchyUtils "github.com/crunchy-labs/crunchyroll-go/v3/utils"
"github.com/grafov/m3u8"
@ -136,7 +136,7 @@ func download(urls []string) error {
utils.Log.StopProcess("Failed to parse url %d", i+1)
if utils.Crunchy.Config.Premium {
utils.Log.Debug("If the error says no episodes could be found but the passed url is correct and a crunchyroll classic url, " +
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/ByteDream/crunchy-cli/issues/22 for more information")
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/crunchy-labs/crunchy-cli/issues/22 for more information")
}
return err
}

View file

@ -2,8 +2,8 @@ package info
import (
"fmt"
"github.com/ByteDream/crunchy-cli/cli/commands"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/cli/commands"
"github.com/crunchy-labs/crunchy-cli/utils"
crunchyUtils "github.com/crunchy-labs/crunchyroll-go/v3/utils"
"github.com/spf13/cobra"
)

View file

@ -2,7 +2,7 @@ package commands
import (
"fmt"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/utils"
"io"
"log"
"os"

View file

@ -3,8 +3,8 @@ package login
import (
"bytes"
"fmt"
"github.com/ByteDream/crunchy-cli/cli/commands"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/cli/commands"
"github.com/crunchy-labs/crunchy-cli/utils"
"github.com/crunchy-labs/crunchyroll-go/v3"
"github.com/spf13/cobra"
"os"

View file

@ -3,7 +3,7 @@ package update
import (
"encoding/json"
"fmt"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/utils"
"github.com/spf13/cobra"
"io"
"os"
@ -37,7 +37,7 @@ func init() {
func update() error {
var release map[string]interface{}
resp, err := utils.Client.Get("https://api.github.com/repos/ByteDream/crunchy-cli/releases/latest")
resp, err := utils.Client.Get("https://api.github.com/repos/crunchy-labs/crunchy-cli/releases/latest")
if err != nil {
return err
}
@ -79,12 +79,12 @@ func update() error {
return nil
}
utils.Log.Info("A new version is available (%s): https://github.com/ByteDream/crunchy-cli/releases/tag/v%s", releaseVersion, releaseVersion)
utils.Log.Info("A new version is available (%s): https://github.com/crunchy-labs/crunchy-cli/releases/tag/v%s", releaseVersion, releaseVersion)
if updateInstallFlag {
if runtime.GOARCH != "amd64" {
return fmt.Errorf("invalid architecture found (%s), only amd64 is currently supported for automatic updating. "+
"You have to update manually (https://github.com/ByteDream/crunchy-cli)", runtime.GOARCH)
"You have to update manually (https://github.com/crunchy-labs/crunchy-cli)", runtime.GOARCH)
}
var downloadFile string
@ -102,7 +102,7 @@ func update() error {
downloadFile = fmt.Sprintf("crunchy-v%s_windows.exe", releaseVersion)
default:
return fmt.Errorf("invalid operation system found (%s), only linux, windows and darwin / macos are currently supported. "+
"You have to update manually (https://github.com/ByteDream/crunchy-cli", runtime.GOOS)
"You have to update manually (https://github.com/crunchy-labs/crunchy-cli", runtime.GOOS)
}
utils.Log.SetProcess("Updating executable %s", os.Args[0])
@ -118,7 +118,7 @@ func update() error {
}
defer executeFile.Close()
resp, err := utils.Client.Get(fmt.Sprintf("https://github.com/ByteDream/crunchy-cli/releases/download/v%s/%s", releaseVersion, downloadFile))
resp, err := utils.Client.Get(fmt.Sprintf("https://github.com/crunchy-labs/crunchy-cli/releases/download/v%s/%s", releaseVersion, downloadFile))
if err != nil {
return err
}

View file

@ -2,7 +2,7 @@ package commands
import (
"fmt"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/utils"
"os"
"os/exec"
"runtime"

View file

@ -3,13 +3,13 @@ package cli
import (
"context"
"fmt"
"github.com/ByteDream/crunchy-cli/cli/commands"
"github.com/ByteDream/crunchy-cli/cli/commands/archive"
"github.com/ByteDream/crunchy-cli/cli/commands/download"
"github.com/ByteDream/crunchy-cli/cli/commands/info"
"github.com/ByteDream/crunchy-cli/cli/commands/login"
"github.com/ByteDream/crunchy-cli/cli/commands/update"
"github.com/ByteDream/crunchy-cli/utils"
"github.com/crunchy-labs/crunchy-cli/cli/commands"
"github.com/crunchy-labs/crunchy-cli/cli/commands/archive"
"github.com/crunchy-labs/crunchy-cli/cli/commands/download"
"github.com/crunchy-labs/crunchy-cli/cli/commands/info"
"github.com/crunchy-labs/crunchy-cli/cli/commands/login"
"github.com/crunchy-labs/crunchy-cli/cli/commands/update"
"github.com/crunchy-labs/crunchy-cli/utils"
"github.com/spf13/cobra"
"os"
"runtime/debug"
@ -28,7 +28,7 @@ var (
var RootCmd = &cobra.Command{
Use: "crunchy-cli",
Version: utils.Version,
Short: "Download crunchyroll videos with ease. See the wiki for details about the cli and library: https://github.com/ByteDream/crunchy-cli/wiki",
Short: "Download crunchyroll videos with ease. See the wiki for details about the cli and library: https://github.com/crunchy-labs/crunchy-cli/wiki",
SilenceErrors: true,
SilenceUsage: true,