Skip to content

Downloads anime from Crunchyroll and outputs them in a MKV file.

Notifications You must be signed in to change notification settings

CuteTenshii/crunchyroll-downloader

Repository files navigation

Crunchyroll Downloader

Downloads anime from Crunchyroll and outputs them in a MKV file.

You won't be banned or anything, I downloaded all Kaguya-Sama seasons to test during 30 mins and everything went fine

Features

  • Supports choosing the audio and subtitles language
  • Supports choosing the audio and video quality
  • Decrypts Widevine DRM (requires: a .wvd file or client_id.bin and private_key.pem files)
  • Adds metadata (like episode name) to the MKV container

Requirements

  • FFmpeg
  • To download Premium-only content, a Crunchyroll Premium account. No, this can't be bypassed and a free trial should be enough
  • Either a .wvd file, or a client_id.bin and private_key.pem

Download

Check the latest release and download the file that corresponds to your OS.

Usage

  • Open a Terminal/Command prompt, and go to the folder where you downloaded the binary/cloned the repo
  • Run the program with the options you want:
Usage of ./crunchyroll-downloader:
  -audio-lang string
        Audio language (default "ja-JP")
  -audio-quality string
        Audio quality (default "192k")
  -etp-rt string
        The "etp_rt" cookie value of your account
  -season int
        Season number. Not used if an episode link is entered
  -subs-lang string
        Subtitles language (default "en-US")
  -url string
        URL of the episode/season to download
  -video-quality string
        Video quality (default "1080p")

Ex: to download the first season of Hell's Paradise:

./crunchyroll-downloader --url https://www.crunchyroll.com/series/GJ0H7Q5ZJ/hells-paradise --season 1 --etp-rt replace_this

To download a specific episode:

./crunchyroll-downloader --url https://www.crunchyroll.com/watch/GE00198973JAJP/dawn-and-confusion --etp-rt replace_this

Building

Requirements

Guide

  • Clone this repository
  • Open a Terminal/Command prompt, and go to the folder where you cloned the repo
  • Run go build .

Help

How do I get my etp_rt cookie?

  • Go to https://crunchyroll.com
  • Open Developer Tools
  • Firefox: Go to Storage then Cookies
    Chrome: Go to Application then Cookies
  • Select the Crunchyroll domain, then copy the etp_rt cookie value

What is a .wvd file and do I really need one?

Yes, Crunchyroll uses DRM-only content. This file is used to get a Widevine license, which gives the keys to decrypt the media.

If you don't have a rooted Android device or are just lazy, search "ready to use cdms" and you'll find plenty of websites providing those files.