Read this in other language: Deutsch
CR-dl is a tool to quickly download anime from Crunchyroll
Windows users can get a Windows bundle from the Releases Page.
CR-dl requires node.js (v10) and ffmpeg to be installed on the system and available in PATH
After these are installed run:
npm install -g https://github.com/DasKraken/CR-dl.git
now you can run it with cr-dl
CR-dl is a CLI-Tool and can only be run from the terminal.
Note: If you use the Windows bundle with Powershell, instead of calling cr-dl
, you have to write it out: .\cr-dl.exe
.
Following commands are available:
Logging in into Crunchyroll to be able accessing premium content (This will create a file 'cookies.data' to store the session):
cr-dl login <username> <password>
Logging out:
cr-dl logout
Changing the language of Crunchyroll. This will change the language of the metadata for file naming. Note 1: This wont change the default subtitle language. Note 2: Series that aren't available in selected language may not work. Allowed are: enUS, enGB, esLA, esES, ptBR, ptPT, frFR, deDE, arME, itIT, ruRU
cr-dl language LANG
Downloading a video or a series from URL. A resolution can be provided optionally (360p, 480p, 720p, 1080p):
cr-dl download <URL> [resolution]
Following optional arguments can be provided to 'download':
--season SEASON, --seasons SEASONS
A season number or a comma-separated list (without spaces) of season numbers to download (eg. 1,2
). Works only for series-links. Note: Season 1 is the bottom-most season on the website.
--episode EPISODE, --episodes EPISODES
A comma-separated list of episode numbers to download. A -
(minus) can be used to specify an area (eg. 01,03-05,SP2
). Works only for series-links. If multiple seasons are available, you must specify one with --season.
-c N, --connections N
Number of simultaneous connections (default: 5)
--subLangs LANGS
Specify subtitle languages as a comma separated list to include in video. (eg. deDE,enUS). Set to none
to embed no subtitles.
-l LANG, --subDefault LANG
Specify subtitle language to be set as default. (eg.enUS). (Default: if --subLangs defined: first entry, otherwise: crunchyroll default)
--listSubs
Don't download. Show list of available subtitle languages.
--subsOnly
Download only subtitles. No Video.
--hardsub
Download hardsubbed video stream. Only one subtitle specified by --subDefault will be included.
--maxAttempts N
Max number of download attempts before aborting. (Default: 5)
--hideProgressBar
Hide progress bar.
-o OUTPUT, --output OUTPUT
Output filename template, see the "OUTPUT TEMPLATE" for all the info
Output template is a string specified with -o where every {...} will be replaced with the value represented by given name.
Default is -o "{seasonTitle} [{resolution}]/{seasonTitle} - {episodeNumber} - {episodeTitle} [{resolution}].mkv"
Allowed names are:
{episodeTitle}: Title of the episode.
{seriesTitle}: Title of the series. (seasonTitle should be preferred to differentiate seasons)
{episodeNumber}: Episode number in two digits e.g. "02". Can also be a special episode e.g. "SP1"
{seasonTitle}: Title of the season.
{resolution}: Resolution of the video. E.g. 1080p
Additionally you can append !scene to the name e.g. {seasonTitle!scene}
to make it a dot separated title as used in Scene releases.
E.g. "Food Wars! Shokugeki no Sōma" => "Food.Wars.Shokugeki.no.Soma"
Name it like a scene release:
-o "{seasonTitle!scene}.{resolution}.WEB.x264-byME/{seasonTitle!scene}.E{episodeNumber}.{resolution}.WEB.x264-byME.mkv"
Name it like a Fansub:
-o "[MySubs] {seasonTitle} - {episodeNumber} [{resolution}].mkv"
Log in as user "MyName" with password "Pass123":
cr-dl login "MyName" "Pass123"
Download episode 4 of HINAMATSURI:
cr-dl download http://www.crunchyroll.com/hinamatsuri/episode-4-disownment-rock-n-roll-fever-769303"
Download all episodes of HINAMATSURI in 720p using 10 simultaneous connections, and will set the default subtitle language to enUS:
cr-dl download -c 10 -l enUS http://www.crunchyroll.com/hinamatsuri 720p
Download only the second season of Food Wars in 1080p:
cr-dl download http://www.crunchyroll.com/food-wars-shokugeki-no-soma --season 2
Download Bungo Stray Dogs 1 and 2:
cr-dl download http://www.crunchyroll.com/bungo-stray-dogs --seasons 6,7
Download episodes 1,3,4,5 and special 2 of DITF:
cr-dl download http://www.crunchyroll.com/darling-in-the-franxx --episodes 1,3-5,SP2
Download video and add only german and english subs and set german as default:
cr-dl download --subLangs deDE,enUS URL
Download video and name it like a scene release:
cr-dl download -o "{seasonTitle!scene}.{resolution}.WEB.x264-byME/{seasonTitle!scene}.E{episodeNumber}.{resolution}.WEB.x264-byME.mkv" URL
MIT License
Copyright (c) 2018 DerKraken
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.