Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l0westbob/crunchy-cli
Docker compose for running crunchyroll-cli in a docker container
https://github.com/l0westbob/crunchy-cli
anime anime-downloader bash-script crunchyroll crunchyroll-api crunchyroll-downloader crunchyroll-enhancer docker docker-compose
Last synced: about 2 months ago
JSON representation
Docker compose for running crunchyroll-cli in a docker container
- Host: GitHub
- URL: https://github.com/l0westbob/crunchy-cli
- Owner: l0westbob
- License: gpl-3.0
- Created: 2023-05-18T11:35:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-19T09:26:03.000Z (over 1 year ago)
- Last Synced: 2024-08-01T22:03:58.287Z (5 months ago)
- Topics: anime, anime-downloader, bash-script, crunchyroll, crunchyroll-api, crunchyroll-downloader, crunchyroll-enhancer, docker, docker-compose
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker compose for crunchy-cli
This is a docker compose setup for running [crunchy-cli](https://github.com/crunchy-labs/crunchy-cli) in a docker container. Prerequisites are `docker` and `docker compose`
# Usage
Set all required environment variables in the `.env` file. The `COOKIE` variable is used for the `--etp-rt` login functionality of crunchy-cli. The cookie can be obtained by logging into your crunchyroll account, open the developer console of your browser, click on the application tab and select cookies in the storage listing. Search for an entry called `ept_rt` and copy its value into the `.env` file. Don't forget to set a download directory or all files will be downloaded to the default directory `downloads` within this project directory.
Execute `docker-compose up` in the project directory to run the container. You can execute `docker compose up -d` if you want silent execution. Use `docker compose down` to stop the container. If the docker image has not been built yet, it will be on the first run. The created docker image contains everything needed to use crunchy-cli with its full potential. Define all download tasks in the file `./script/download.sh`. The container will start and execute every command in this file.
Example content for `script/download.sh`:
```
#!/usr/bin/env bash## Start ##
# Create a new download directory if it doesn't exist yet
mkdir -p one-piece
# Change directory to download directory
cd one-piece
# Download files
crunchy-cli archive -a ja-JP -a de-DE -s de-DE -s en-US -o '[S{season_number}E{episode_number}] {title}.mkv' https://www.crunchyroll.com/de/series/GRMG8ZQZR/one-piece
# After finishing all downloads go back into the parent directory and start next task
cd ..
## End #### Start ##
# Create a new download directory if it doesn't exist yet
mkdir -p naruto
# Change directory to download directory
cd naruto
# Download files
crunchy-cli archive -a ja-JP -a de-DE -s de-DE -s en-US -o '[S{season_number}E{episode_number}] {title}.mkv' https://www.crunchyroll.com/de/series/GY9PJ5KWR/naruto
# After finishing all downloads go back into the parent directory and start next task
cd ..
## End ##```
For further information about crunchy-cli visit the repository: https://github.com/crunchy-labs/crunchy-cli
# Troubleshooting
If you reach your rate limit, you need to adjust the download task or all episodes will be downloaded again. See https://github.com/crunchy-labs/crunchy-cli#episode-filtering for information on how to do that.
# 📜 Disclaimer
This tool is **ONLY** meant for private use. You need a subscription to [`💳 Crunchyroll Premium 💳`](https://www.crunchyroll.com/welcome#plans) to download premium content.
**You are entirely responsible for what happens to files you downloaded through crunchy-cli.**
# âš– License
This project is licensed under the GNU General Public License v3.0 (GPL-3.0) - see the [LICENSE](LICENSE) file for more details.