mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add Output Templates section in README.md
Added a section for output templates so that users of the application have an easy reference as opposed to searching within the code. I also updated the Output Templates subsection in the downloads section to mention both .ts and .mp4 files since the default changes in version crunchy-cli v3.0.0-dev.9 of the binaries.
This commit is contained in:
parent
49d64805ca
commit
4123c4912a
1 changed files with 24 additions and 2 deletions
26
README.md
26
README.md
|
|
@ -143,7 +143,7 @@ With the session stored, you do not need to use `--credentials` / `--etp-rt` any
|
||||||
```shell
|
```shell
|
||||||
$ crunchy download -o "ditf.ts" https://www.crunchyroll.com/watch/GRDQPM1ZY/alone-and-lonesome
|
$ crunchy download -o "ditf.ts" https://www.crunchyroll.com/watch/GRDQPM1ZY/alone-and-lonesome
|
||||||
```
|
```
|
||||||
Default is `{title}.ts`.
|
Default is `{title}.ts` or `{title}.mp4`, depending on the version of binary you're using. See the Template Options section below for more options.
|
||||||
|
|
||||||
- Resolution
|
- Resolution
|
||||||
|
|
||||||
|
|
@ -187,7 +187,7 @@ With the session stored, you do not need to use `--credentials` / `--etp-rt` any
|
||||||
```shell
|
```shell
|
||||||
$ crunchy archive -o "{title}.mkv" https://www.crunchyroll.com/series/GY8VEQ95Y/darling-in-the-franxx
|
$ crunchy archive -o "{title}.mkv" https://www.crunchyroll.com/series/GY8VEQ95Y/darling-in-the-franxx
|
||||||
```
|
```
|
||||||
Default is `{title}.mkv`.
|
Default is `{title}.mkv`. See the Template Options section below for more options.
|
||||||
|
|
||||||
- Resolution
|
- Resolution
|
||||||
|
|
||||||
|
|
@ -218,6 +218,28 @@ With the session stored, you do not need to use `--credentials` / `--etp-rt` any
|
||||||
```
|
```
|
||||||
Default is none.
|
Default is none.
|
||||||
|
|
||||||
|
### Output Template Options
|
||||||
|
|
||||||
|
You can use various template options to change how the filename is processed. The following tags are available:
|
||||||
|
|
||||||
|
- {title} → Title of the video
|
||||||
|
- {series_name} → Name of the series
|
||||||
|
- {season_name} → Name of the season
|
||||||
|
- {audio} → Audio language of the video
|
||||||
|
- {resolution} → Resolution of the video
|
||||||
|
- {season_number} → Number of the season
|
||||||
|
- {episode_number} → Number of the episode
|
||||||
|
- {relative_episode_number} → Number of the episode relative to its season
|
||||||
|
- {series_id} → ID of the series
|
||||||
|
- {season_id} → ID of the season
|
||||||
|
- {episode_id} → ID of the episode
|
||||||
|
|
||||||
|
When including a file extension in the output, use the `.mp4` extension when using a binary crunchy-cli v3.0.0-dev.9 or newer and using the `download` option. `.mkv` is the default file extension for `archive` downloads. Here is an example of using output templates:
|
||||||
|
```shell
|
||||||
|
$ crunchy archive -o "[S{season_number}E{episode_number}] {title}.mkv" https://www.crunchyroll.com/series/G8DHV7W21/dragon-ball
|
||||||
|
# Outputs: '[S01E01] Secret of the Dragon Ball.mkv'
|
||||||
|
```
|
||||||
|
|
||||||
### Episode filtering
|
### Episode filtering
|
||||||
|
|
||||||
Filters patterns can be used to download a specific range of episodes from a single series.
|
Filters patterns can be used to download a specific range of episodes from a single series.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue