From 2773445050c45d262d18834c9b1f9cf2394e524a Mon Sep 17 00:00:00 2001 From: bytedream Date: Tue, 26 Jul 2022 12:47:23 +0200 Subject: [PATCH] Change author names and links to crunchy-labs --- Makefile | 8 +++---- README.md | 40 +++++++++++++++---------------- cli/commands/archive/archive.go | 6 ++--- cli/commands/archive/compress.go | 2 +- cli/commands/download/download.go | 6 ++--- cli/commands/info/info.go | 4 ++-- cli/commands/logger.go | 2 +- cli/commands/login/login.go | 4 ++-- cli/commands/update/update.go | 12 +++++----- cli/commands/utils.go | 2 +- cli/root.go | 16 ++++++------- crunchy-cli.1 | 6 ++--- go.mod | 2 +- main.go | 2 +- 14 files changed, 56 insertions(+), 56 deletions(-) diff --git a/Makefile b/Makefile index 7836af9..966872b 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ DESTDIR= PREFIX=/usr build: - go build -ldflags "-X 'github.com/ByteDream/crunchy-cli/utils.Version=$(VERSION)'" -o $(BINARY_NAME) . + go build -ldflags "-X 'github.com/crunchy-labs/crunchy-cli/utils.Version=$(VERSION)'" -o $(BINARY_NAME) . clean: rm -f $(BINARY_NAME) $(VERSION_BINARY_NAME)_* @@ -24,8 +24,8 @@ uninstall: rm -f $(DESTDIR)$(PREFIX)/share/licenses/crunchy-cli/LICENSE release: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchy-cli/utils.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_linux . - CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchy-cli/utils.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_windows.exe . - CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'github.com/ByteDream/crunchy-cli/utils.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_darwin . + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X 'github.com/crunchy-labs/crunchy-cli/utils.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_linux . + CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X 'github.com/crunchy-labs/crunchy-cli/utils.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_windows.exe . + CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'github.com/crunchy-labs/crunchy-cli/utils.Version=$(VERSION)'" -o $(VERSION_BINARY_NAME)_darwin . strip $(VERSION_BINARY_NAME)_linux diff --git a/README.md b/README.md index bce05b9..09cd829 100644 --- a/README.md +++ b/README.md @@ -3,26 +3,26 @@ A [go](https://golang.org) written cli client for [crunchyroll](https://www.crunchyroll.com). To use it, you need a crunchyroll premium account to for full (api) access.

- - Code size + + Code size - - Download Badge + + Download Badge - - License + + License - Go version + Go version - - Release + + Release Discord - - CI + + CI

@@ -47,10 +47,10 @@ See #39 for more information._ ## 💾 Get the executable -- 📥 Download the latest binaries [here](https://github.com/ByteDream/crunchy-cli/releases/latest) or get it from below: - - [Linux (x64)](https://smartrelease.bytedream.org/github/ByteDream/crunchy-cli/crunchy-{tag}_linux) - - [Windows (x64)](https://smartrelease.bytedream.org/github/ByteDream/crunchy-cli/crunchy-{tag}_windows.exe) - - [MacOS (x64)](https://smartrelease.bytedream.org/github/ByteDream/crunchy-cli/crunchy-{tag}_darwin) +- 📥 Download the latest binaries [here](https://github.com/crunchy-labs/crunchy-cli/releases/latest) or get it from below: + - [Linux (x64)](https://smartrelease.crunchy-labs.org/github/crunchy-labs/crunchy-cli/crunchy-{tag}_linux) + - [Windows (x64)](https://smartrelease.crunchy-labs.org/github/crunchy-labs/crunchy-cli/crunchy-{tag}_windows.exe) + - [MacOS (x64)](https://smartrelease.crunchy-labs.org/github/crunchy-labs/crunchy-cli/crunchy-{tag}_darwin) - If you use Arch btw. or any other Linux distro which is based on Arch Linux, you can download the package via the [AUR](https://aur.archlinux.org/packages/crunchyroll-go/): ```shell $ yay -S crunchyroll-go @@ -65,24 +65,24 @@ See #39 for more information._ Currently not working because the repo got renamed! -- 🛠 Build it yourself. Must be done if your target platform is not covered by the [provided binaries](https://github.com/ByteDream/crunchy-cli/releases/latest) (like Raspberry Pi or M1 Mac): +- 🛠 Build it yourself. Must be done if your target platform is not covered by the [provided binaries](https://github.com/crunchy-labs/crunchy-cli/releases/latest) (like Raspberry Pi or M1 Mac): - use `make` (requires `go` to be installed): ```shell - $ git clone https://github.com/ByteDream/crunchy-cli + $ git clone https://github.com/crunchy-labs/crunchy-cli $ cd crunchy-cli $ make $ sudo make install # <- only if you want to install it on your system ``` - use `go`: ```shell - $ git clone https://github.com/ByteDream/crunchy-cli + $ git clone https://github.com/crunchy-labs/crunchy-cli $ cd crunchy-cli $ go build -o crunchy . ``` ## 📝 Examples -_Before reading_: Because of the huge functionality not all cases can be covered in the README. Make sure to check the [wiki](https://github.com/ByteDream/crunchy-cli/wiki/Cli), further usages and options are described there. +_Before reading_: Because of the huge functionality not all cases can be covered in the README. Make sure to check the [wiki](https://github.com/crunchy-labs/crunchy-cli/wiki/Cli), further usages and options are described there. ### Login @@ -169,7 +169,7 @@ The following flags can be (optional) passed to modify the [archive](#archive) p | `-l` | `--language` | Audio locale which should be downloaded. Can be used multiple times. | | `-d` | `--directory` | Directory to download the video(s) to. | | `-o` | `--output` | Name of the output file. | -| `-m` | `--merge` | Sets the behavior of the stream merging. Valid behaviors are 'auto', 'audio', 'video'. See the [wiki](https://github.com/ByteDream/crunchy-cli/wiki/Cli#archive) for more information. | +| `-m` | `--merge` | Sets the behavior of the stream merging. Valid behaviors are 'auto', 'audio', 'video'. See the [wiki](https://github.com/crunchy-labs/crunchy-cli/wiki/Cli#archive) for more information. | | `-c` | `--compress` | If is set, all output will be compresses into an archive. This flag sets the name of the compressed output file and the file ending specifies the compression algorithm (gzip, tar, zip are supported). | | `-r` | `--resolution` | The resolution of the video(s). `best` for best resolution, `worst` for worst. | | `-g` | `--goroutines` | Sets how many parallel segment downloads should be used. | diff --git a/cli/commands/archive/archive.go b/cli/commands/archive/archive.go index 99cb77f..8e09f5e 100644 --- a/cli/commands/archive/archive.go +++ b/cli/commands/archive/archive.go @@ -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 } diff --git a/cli/commands/archive/compress.go b/cli/commands/archive/compress.go index d6aa492..e0b9ad4 100644 --- a/cli/commands/archive/compress.go +++ b/cli/commands/archive/compress.go @@ -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" diff --git a/cli/commands/download/download.go b/cli/commands/download/download.go index 2f2ec9f..2976e2d 100644 --- a/cli/commands/download/download.go +++ b/cli/commands/download/download.go @@ -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 } diff --git a/cli/commands/info/info.go b/cli/commands/info/info.go index 9b816fd..db909c1 100644 --- a/cli/commands/info/info.go +++ b/cli/commands/info/info.go @@ -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" ) diff --git a/cli/commands/logger.go b/cli/commands/logger.go index 2f3ae37..89a4717 100644 --- a/cli/commands/logger.go +++ b/cli/commands/logger.go @@ -2,7 +2,7 @@ package commands import ( "fmt" - "github.com/ByteDream/crunchy-cli/utils" + "github.com/crunchy-labs/crunchy-cli/utils" "io" "log" "os" diff --git a/cli/commands/login/login.go b/cli/commands/login/login.go index 7fb135c..eb1b4dc 100644 --- a/cli/commands/login/login.go +++ b/cli/commands/login/login.go @@ -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" diff --git a/cli/commands/update/update.go b/cli/commands/update/update.go index 6587ca2..831621d 100644 --- a/cli/commands/update/update.go +++ b/cli/commands/update/update.go @@ -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 } diff --git a/cli/commands/utils.go b/cli/commands/utils.go index 924cd4d..53e51f2 100644 --- a/cli/commands/utils.go +++ b/cli/commands/utils.go @@ -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" diff --git a/cli/root.go b/cli/root.go index ebb5079..b589a03 100644 --- a/cli/root.go +++ b/cli/root.go @@ -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, diff --git a/crunchy-cli.1 b/crunchy-cli.1 index ebadb9c..6f20dba 100644 --- a/crunchy-cli.1 +++ b/crunchy-cli.1 @@ -193,12 +193,12 @@ $ crunchy-cli archive -c "ditf.tar.gz" https://beta.crunchyroll.com/series/GY8VE If you notice any bug or want an enhancement, feel free to create a new issue or pull request in the GitHub repository. .SH AUTHOR -ByteDream +Crunchy Labs Maintainers .br -Source: https://github.com/ByteDream/crunchy-cli +Source: https://github.com/crunchy-labs/crunchy-cli .SH COPYRIGHT -Copyright (C) 2022 ByteDream +Copyright (C) 2022 Crunchy Labs Maintainers This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/go.mod b/go.mod index ce09935..37a4e42 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ByteDream/crunchy-cli +module github.com/crunchy-labs/crunchy-cli go 1.18 diff --git a/main.go b/main.go index 7275a13..72ec83b 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/ByteDream/crunchy-cli/cli" + "github.com/crunchy-labs/crunchy-cli/cli" ) func main() {