mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Change author names and links to crunchy-labs
This commit is contained in:
parent
5b4c228b60
commit
2773445050
14 changed files with 56 additions and 56 deletions
8
Makefile
8
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
|
||||
|
|
|
|||
40
README.md
40
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.
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/ByteDream/crunchy-cli">
|
||||
<img src="https://img.shields.io/github/languages/code-size/ByteDream/crunchy-cli?style=flat-square" alt="Code size">
|
||||
<a href="https://github.com/crunchy-labs/crunchy-cli">
|
||||
<img src="https://img.shields.io/github/languages/code-size/crunchy-labs/crunchy-cli?style=flat-square" alt="Code size">
|
||||
</a>
|
||||
<a href="https://github.com/ByteDream/crunchy-cli/releases/latest">
|
||||
<img src="https://img.shields.io/github/downloads/ByteDream/crunchy-cli/total?style=flat-square" alt="Download Badge">
|
||||
<a href="https://github.com/crunchy-labs/crunchy-cli/releases/latest">
|
||||
<img src="https://img.shields.io/github/downloads/crunchy-labs/crunchy-cli/total?style=flat-square" alt="Download Badge">
|
||||
</a>
|
||||
<a href="https://github.com/ByteDream/crunchy-cli/blob/master/LICENSE">
|
||||
<img src="https://img.shields.io/github/license/ByteDream/crunchy-cli?style=flat-square" alt="License">
|
||||
<a href="https://github.com/crunchy-labs/crunchy-cli/blob/master/LICENSE">
|
||||
<img src="https://img.shields.io/github/license/crunchy-labs/crunchy-cli?style=flat-square" alt="License">
|
||||
</a>
|
||||
<a href="https://golang.org">
|
||||
<img src="https://img.shields.io/github/go-mod/go-version/ByteDream/crunchy-cli?style=flat-square" alt="Go version">
|
||||
<img src="https://img.shields.io/github/go-mod/go-version/crunchy-labs/crunchy-cli?style=flat-square" alt="Go version">
|
||||
</a>
|
||||
<a href="https://github.com/ByteDream/crunchy-cli/releases/latest">
|
||||
<img src="https://img.shields.io/github/v/release/ByteDream/crunchy-cli?style=flat-square" alt="Release">
|
||||
<a href="https://github.com/crunchy-labs/crunchy-cli/releases/latest">
|
||||
<img src="https://img.shields.io/github/v/release/crunchy-labs/crunchy-cli?style=flat-square" alt="Release">
|
||||
</a>
|
||||
<a href="https://discord.gg/gUWwekeNNg">
|
||||
<img src="https://img.shields.io/discord/915659846836162561?label=discord&style=flat-square" alt="Discord">
|
||||
</a>
|
||||
<a href="https://github.com/ByteDream/crunchy-cli/actions/workflows/ci.yml">
|
||||
<img src="https://github.com/ByteDream/crunchy-cli/workflows/CI/badge.svg?style=flat" alt="CI">
|
||||
<a href="https://github.com/crunchy-labs/crunchy-cli/actions/workflows/ci.yml">
|
||||
<img src="https://github.com/crunchy-labs/crunchy-cli/workflows/CI/badge.svg?style=flat" alt="CI">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
|
@ -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._
|
|||
|
||||
</del>
|
||||
<i>Currently not working because the repo got renamed!</i>
|
||||
- 🛠 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. |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package commands
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/ByteDream/crunchy-cli/utils"
|
||||
"github.com/crunchy-labs/crunchy-cli/utils"
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
16
cli/root.go
16
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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/ByteDream/crunchy-cli
|
||||
module github.com/crunchy-labs/crunchy-cli
|
||||
|
||||
go 1.18
|
||||
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -1,7 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/ByteDream/crunchy-cli/cli"
|
||||
"github.com/crunchy-labs/crunchy-cli/cli"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue