Giter Site home page Giter Site logo

xonshiz / anime-dl Goto Github PK

View Code? Open in Web Editor NEW
228.0 28.0 36.0 194 KB

Anime-dl is a command-line program to download anime from CrunchyRoll and Funimation.

License: MIT License

Python 91.91% Batchfile 0.12% Shell 7.97%
anime-dl anime-downloader anime automation cfscrape crunchyroll funimation web scraper scraping

anime-dl's Introduction

Anime-DL | Build Status Documentation Status | Donate | GitHub release | Github All Releases

Anime-dl is a Command-line program to download anime from CrunchyRoll and Funimation. This script needs you to have a premium subscription for the listed services. If you don't have a subscription, this script is pretty much usless for you.

Downloading and distributing this content may be illegal.This script was written for education purposes purely and you are responsible for its use.

Support these anime streaming websites by buying a premium account.

Taking some libs directly from youtube-dl to decrypt CrunchyRoll's subtitles.

Table of Content

Supported Websites

You can check the list of supported websites HERE.

Dependencies Installation

This script can run on multiple Operating Systems. But, the script depends on some external binaries or libs. We need FFmpeg, mkvmerge and Node.js in our paths. There are some old streams on Crunchyroll which only support rtmpe streams, as noted from Issue #9. For this, you need rtmpdump.

You also need mkvmerge.exe in your PATH or Working Directory.

These dependencies are required on ALL the operating systems, ALL!.

1.) Make sure you have Python installed and is present in your system's path.

2.) Grab FFmpeg from this link, Node.js from this link and RTMPDump.

3.) Install FFmpeg and Node.js and place it in the directory of this script, or put them in your system's path.

4.) Browse to the directory of this script and open command prompt/shell in that directory and run this command :

python pip install -r requirements.txt

Installation

After installing and setting up all the dependencies in your Operating System, you're good to go and use this script. The instructions for all the OS would remain same. Download THIS REPOSITORY and put it somewhere in your system. Move over the anime_dl folder.

Windows users, it's better to not place it places where it requires administrator privileges. Good example of places to avoid would be C:\Windows etc.. This goes for both, the Python script and the windows binary file (.exe).

Debian 7/8/9 users, run this command to automatically install anime-dl into your CWD:

curl https://raw.githubusercontent.com/Xonshiz/anime-dl/master/auto.sh | sudo bash

Linux/Debian users make sure that this script is executable.Just run this command, if you run into problem(s) :

chmod +x anime-dl.py

chmod +x __main__.py

and then, execute with this :

./__main__.py

Python Support

This script supports only Pythom 3 currently..

Windows Binary

It is recommended that windows users use this binary to save both, your head and time from installing all the dependencies.

You need to download FFmpeg and Node.js and keep them in the same directory as that of this windows binary file.

If you already have these dependencies, then you can download this binary and start using the script right off the bat :

List of Arguments

Currently, the script supports these arguments :

-h, --help                             Prints the basic help menu of the script and exits.
-i,--input                             Defines the input link to the anime.
-V,--version                           Prints the VERSION and exits.
-u,--username                          Indicates username for a website. [REQUIRED]
-p,--password                          Indicates password for a website. [REQUIRED]
-r,--resolution                        Indicates the desired resolution. (default = 720p)
--skip                                 Skip video downloads (Will only download subtitles)
-v,--verbose                           Starts Verbose Logging for detailed information.
-l,--language                          Selects the language for the show. (default = Japanese) [Langs = english, dub, sub, Japanese, eng]
-rn,--range                            Selects the range of episodes to download (Default = All) [ Ex : --range 1-10 (This will download first 10 episodes of a series)]

Usage

With this script, you have to pass arguments in order to be able to download anything. Passing arguments in a script is pretty easy. Since the script is pretty basic, it doesn't have too many arguments. Go check the ARGUMENTS SECTION to know more about which arguments the script offers.

Follow the instructions according to your OS :

Windows

After you've saved this script in a directory/folder, you need to open command prompt and browse to that directory and then execute the script. Let's do it step by step :

  • Open the folder where you've downloaded the files of this repository.
  • Hold down the SHIFT key and while holding down the SHIFT key, RIGHT CLICK and select Open Command Prompt Here from the options that show up. PowerShell users see below
  • Now, in the command prompt, type this :

If you're using the windows binary :

anime-dl.exe -i "<URL TO THE ANIME>" -u "YourUsername" -p "Password" -r "Resolution"

If you're using the Python Script :

__main__.py -i "<URL TO THE ANIME>" -u "YourUsername" -p "Password" -r "Resolution"

URL can be any URL of the supported websites.

PowerShell Note :

  • With Windows 10, the default option when shift-right clicking is to open PowerShell instead of a command window. When using PowerShell instead of the command prompt, you must make sure that the dependencies directory is in the path or it will not be found.
  • It is possible to enable Open Command Window Here in Windows 10.

Linux/Debian

After you've saved this script in a directory/folder, you need to open command prompt and browse to that directory and then execute the script. Let's do it step by step :

  • Open a terminal, Ctrl + Alt + T is the shortcut to do so (if you didn't know).
  • Now, change the current working directory of the terminal to the one where you've downloaded this repository.
  • Now, in the Terminal, type this :

__main__.py -i "<URL TO THE ANIME>" -u "YourUsername" -p "Password" -r "Resolution"

URL can be any URL of the supported websites.

Example URLs

Note :

  • If you want to include some fonts in the muxed video, you need to make a folder named "Fonts" in the same directory as that of this script and put all the fonts inside that directory. The script should take them all.

Features

This is a very basic and small sript, so at the moment it only have a few features.

  • Downloads a Single episode along with all the available subtitles for that episode.
  • Downloads and puts them all in a directory named "Output".
  • Skip if the file has already been downloaded.
  • Downloads all the episodes for a show available on Crunchyroll.
  • Gives choice for downloading subs or dubs of a series available on Crunchyroll.
  • Choice to download only the subs and skip the videos.

Changelog

You can check the changelog HERE.

Opening An Issue/Requesting A Site

If your're planning to open an issue for the script or ask for a new feature or anything that requires opening an Issue, then please do keep these things in mind.

Reporting Issues

PLEASE RUN THIS SCRIPT IN A COMMAND LINE (as mentioned in the Usage section) AND DON'T SAY THAT THE SCRIPT CLOSED TOO QUICK, I COULDN'T SEE. If something doesn't work like it's supposed to, run the command with the --verbose argument. It'll create a Error Log.txt file in the same directory. Upload the content of that file on Github Gists/Pastebin etc. and share that link.

Please make sure that you remove your loggin credentials from the Error Log.txt file before you post its contents anywhere.

If you're here to report an issue, please follow the basic syntax to post a request :

Subject : Error That You Get.

Command Line Arguments You Gave : The whole command that you gave to execute/run this script.

Verbose Log Link : Link to the Gist/Pastebin that holds the content of Error Log.txt.

Long Explanation : Describe in details what you saw, what should've happened and what actually happened.

This should be enough, but it'll be great if you can add more ;)

Suggesting A Feature

If you're here to make suggestions, please follow the basic syntax to post a request :

Subject : Something that briefly tells us about the feature.

Long Explanation : Describe in details what you want and how you want.

This should be enough, but it'll be great if you can add more ;)

Donations

You can always send some money over from this :

Paypal : Donate

Patreon Link : https://www.patreon.com/xonshiz

Any amount is appreciated :)

anime-dl's People

Contributors

abu3safeer avatar iiepic avatar leptoid avatar lfals avatar nicnl avatar phester571 avatar uilton-oliveira avatar xonshiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anime-dl's Issues

Hardsubbed video.

Hello,

I'm trying to download this file:

http://www.crunchyroll.com/berserk/episode-23-proclaimed-omens-734285

but instead of getting a raw video file and subtitle files as usual I get a hardsubbed video file.

I used this command:
anime-dl.exe -i "http://www.crunchyroll.com/berserk/episode-23-proclaimed-omens-734285" -u "xxxxx" -p "xxxxx" -r "1080"

This is the error file:
https://gist.github.com/xxxKaiserxxx/64bed07a24859acdd0ab34457422813b

I don't use mkvmerge.exe because I like mp4 output more than mkv.

Thank you.

No module named 'anime_dl'

I don't know if you're still in the process of writing this but I get a

No module named 'anime_dl'

Full error:

'Traceback (most recent call last):
  File "AnimeDL.py", line 9, in <module>
    import anime_dl.sites
ModuleNotFoundError: No module named 'anime_dl''

Download Error# Using Linux

maxify@maxify-computer:/anime-dl-master/anime_dl$ python main.py -i "http://www.crunchyroll.com/boruto-naruto-next-generations/episode-16-crisis-the-threat-of-failing-740237" -u "XXX" -p "XXX" -r "1080p" --verbose
Trying to login...
Logged in successfully...
Downloading Boruto Naruto Next Generations - 16 [1920x1080].enUS.ass ...
Downloading Boruto Naruto Next Generations - 16 [1920x1080].ptBR.ass ...
Downloading Boruto Naruto Next Generations - 16 [1920x1080].arME.ass ...
Downloading Boruto Naruto Next Generations - 16 [1920x1080].itIT.ass ...
Downloading Boruto Naruto Next Generations - 16 [1920x1080].deDE.ass ...
Couldn't connect to the m3u8 file download link...
[Errno 2] No such file or directory
maxify@maxify-computer:
/anime-dl-master/anime_dl

Cannot download with new version

Command Line Argument:

anime-dl -i "http://www.crunchyroll.com/saekano-how-to-raise-a-boring-girlfriend-" -u "xxxxx" -p "xxxxxxxxx"
Trying to login...
Traceback (most recent call last):
File "site-packages\cfscrape_init_.py", line 109, in solve_challenge
File "site-packages\execjs_runtimes.py", line 22, in get
File "site-packages\execjs_runtimes.py", line 61, in _find_runtime_by_name
execjs._exceptions.RuntimeUnavailableError: Node.js (V8) runtime is not available on this system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "anime_dl_main_.py", line 16, in
File "anime_dl_main_.py", line 56, in main
File "anime_dl\AnimeDL.py", line 27, in init
File "anime_dl\sites\crunchyroll.py", line 41, in init
File "anime_dl\sites\crunchyroll.py", line 68, in webpagedownloader
File "site-packages\requests\sessions.py", line 501, in get
File "site-packages\cfscrape_init_.py", line 47, in request
File "site-packages\cfscrape_init_.py", line 77, in solve_cf_challenge
File "site-packages\cfscrape_init_.py", line 111, in solve_challenge
OSError: Missing Node.js runtime. Node is required. Please read the cfscrape README's Dependencies section: https://github.com/Anorov/cloudflare-scrape#dependencies.
Failed to execute script main

Long Explanation :

Tried the new version because i was waiting for the only subs version, but when i try to download anything, it shows me this error. I tried the old version and it worked well.

Please let me know if i'm doing anything wrong.

regards!

Problem with installation

Hi,

I have a problem with the installation at the step 4

1.) Make sure you have Python installed and is present in your system's path.

2.) Grab FFmpeg from this link, Node.js from this link and RTMPDump.

3.) Install FFmpeg and Node.js and place it in the directory of this script, or put them in your system's path.

4.) Browse to the directory of this script and open command prompt/shell in that directory and run this command :

python pip install -r requirements.txt

In my cmd I wrote : C:\Users\smokerlolilol>cd "C:\Users\smokerlolilol\Desktop\anime-dl-master"

After, I wrote : C:\Users\smokerlolilol\Desktop\anime-dl-master>python pip install -r requirements.txt

Where is the problem ?

Sorry for my bad english :(

And thank you

Arabic Subtitles Cause Script to Fail/Incorrectly Handled

When an episode of a show with subtitle arME.ass is downloaded, subs and video mux. Script errors and continues on with the next function of the script which is deleting all temp files (note - nothing is moved to output). Not all shows have these which is why error seems intermittent between shows.
Here are some that do:

Boruto
The Ancient Magus
Darling In The Franxx

Delete the arME.ass subtitle file before scripts attempt to multiplex subtitles with video allows everything to mux correctly, due to the incorrectly handled subs no longer being a factor.

Feature(s) Request

Here's a few features that would be extremely useful down the road:

I assume this one was already planned, but just to have it down on paper
Also with this it would be cool to be able to set a flag that would allow you to download more than one episode at once, however I don't know how crunchyroll handles multiple threads so maybe this isn't feasible

  • Merge subtitles and video file into mkv

Maybe even take it a step further and properly set the language for each file in the mkv container

  • Cache site login details/token

Once again I'm not too sure how the token works so if it expires then this probably wouldn't work.

[hls,applehttp @ 00000000025624a0] Opening

hi
i get this error :

[hls,applehttp @ 00000000025624a0] Opening 'crypto+https://cloudfront-hls-segment-vod-ellation.vip3-ams1.dlvr1.net/5a519502-5583-11e7-99b6-a010e0d41d8c/evs/32fe44da6e76d4cd96e9d541b569a54a/assets/7c34477c469d7723d83f4c45863cc58d_3253661.mp4/seg-140-v1-a1.ts?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jbG91ZGZyb250LWhscy1zZWdtZW50LXZvZC1lbGxhdGlvbi52aXAzLWFtczEuZGx2cjEubmV0LzVhNTE5NTAyLTU1ODMtMTFlNy05OWI2LWEwMTBlMGQ0MWQ4Yy9ldnMvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ5ODExMzUwOX19fV19&Signature=hHbIGRoXzdzFrZQQus9WpqzjaGN47LOsn8FBRiukmqHUPiM3Ftv4kdpFq2B5WmIWJsdsXwAZRzEVRc87jap7XF2NjhWDCwfQSpY5ggbL51yEOoxG3vk-YXP9FNxMhS~GaMngkwrKwpkZk9ZtG1upBObQvdNRfR1VfeDwE2yLBjnhxPI5r6rrqxMnh2Qx7op4TqtAg2lCmt-oKUVTkd9is9acQ~Oj5VcYRvWZ7mPcMWQNkexlW0pUmMqEsDfUlg~ELNw5167JO9bO3CUp7J~cJdrg4E-YPdEoq6Eid9qsgti-ZbgROtZkJJFseC5XaC6mvGjsgXCsGEKLk7DftMBGAQ__&Key-Pair-Id=DLVR' for reading
[hls,applehttp @ 00000000025624a0] Opening 'crypto+https://v.vrv.co/evs/32fe44da6e76d4cd96e9d541b569a54a/assets/7c34477c469d7723d83f4c45863cc58d_3253661.mp4/seg-141-v1-a1.ts?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly92LnZydi5jby9ldnMvMzJmZTQ0ZGE2ZTc2ZDRjZDk2ZTlkNTQxYjU2OWE1NGEvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ5ODExMzUwOX19fV19&Signature=Re1Uwzg6smxC4dNnV50lNNGEOgSWC52oXHHlzbnzJVmYyAxtFz6RCK~NAB~s5Th~d-8G-ysJn2soQVZxyEl4MAKLdNH9Cdssm50AhWINbIpeYjhaL-DJciLjIz7Ptv3epm6dLgSNvRrFc3HpuIPSBMajR2C24qRZWJ7CgEwicNxsBSC7p1mndOtZiFFkz5r7Mxe4pbeyIeiRl4-wTXGy2HpdnFaS-RrzorQQzctkIDTrnXIU4vbREQWbyfjjS7~n0K4zal3DV5rMv~UmCG~Gt4XNOCw8gT-7EboiJjX1m4MUi8JosUgMgjPZiyB4GlnchgqYf--v12k0jCXCVGRCuA__&Key-Pair-Id=APKAJKQQ2INNHTYFB44A' for reading
[hls,applehttp @ 00000000025624a0] Opening 'crypto+https://v.vrv.co/evs/32fe44da6e76d4cd96e9d541b569a54a/assets/7c34477c469d7723d83f4c45863cc58d_3253661.mp4/seg-142-v1-a1.ts?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly92LnZydi5jby9ldnMvMzJmZTQ0ZGE2ZTc2ZDRjZDk2ZTlkNTQxYjU2OWE1NGEvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ5ODExMzUwOX19fV19&Signature=Re1Uwzg6smxC4dNnV50lNNGEOgSWC52oXHHlzbnzJVmYyAxtFz6RCK~NAB~s5Th~d-8G-ysJn2soQVZxyEl4MAKLdNH9Cdssm50AhWINbIpeYjhaL-DJciLjIz7Ptv3epm6dLgSNvRrFc3HpuIPSBMajR2C24qRZWJ7CgEwicNxsBSC7p1mndOtZiFFkz5r7Mxe4pbeyIeiRl4-wTXGy2HpdnFaS-RrzorQQzctkIDTrnXIU4vbREQWbyfjjS7~n0K4zal3DV5rMv~UmCG~Gt4XNOCw8gT-7EboiJjX1m4MUi8JosUgMgjPZiyB4GlnchgqYf--v12k0jCXCVGRCuA__&Key-Pair-Id=APKAJKQQ2INNHTYFB44A' for reading
[hls,applehttp @ 00000000025624a0] Opening 'crypto+https://v.vrv.co/evs/32fe44da6e76d4cd96e9d541b569a54a/assets/7c34477c469d7723d83f4c45863cc58d_3253661.mp4/seg-143-v1-a1.ts?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly92LnZydi5jby9ldnMvMzJmZTQ0ZGE2ZTc2ZDRjZDk2ZTlkNTQxYjU2OWE1NGEvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ5ODExMzUwOX19fV19&Signature=Re1Uwzg6smxC4dNnV50lNNGEOgSWC52oXHHlzbnzJVmYyAxtFz6RCK~NAB~s5Th~d-8G-ysJn2soQVZxyEl4MAKLdNH9Cdssm50AhWINbIpeYjhaL-DJciLjIz7Ptv3epm6dLgSNvRrFc3HpuIPSBMajR2C24qRZWJ7CgEwicNxsBSC7p1mndOtZiFFkz5r7Mxe4pbeyIeiRl4-wTXGy2HpdnFaS-RrzorQQzctkIDTrnXIU4vbREQWbyfjjS7~n0K4zal3DV5rMv~UmCG~Gt4XNOCw8gT-7EboiJjX1m4MUi8JosUgMgjPZiyB4GlnchgqYf--v12k0jCXCVGRCuA__&Key-Pair-Id=APKAJKQQ2INNHTYFB44A' for reading
[hls,applehttp @ 00000000025624a0] Opening 'crypto+https://cloudfront-hls-segment-vod-ellation.vip3-ams1.dlvr1.net/5a519502-5583-11e7-99b6-a010e0d41d8c/evs/32fe44da6e76d4cd96e9d541b569a54a/assets/7c34477c469d7723d83f4c45863cc58d_3253661.mp4/seg-144-v1-a1.ts?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jbG91ZGZyb250LWhscy1zZWdtZW50LXZvZC1lbGxhdGlvbi52aXAzLWFtczEuZGx2cjEubmV0LzVhNTE5NTAyLTU1ODMtMTFlNy05OWI2LWEwMTBlMGQ0MWQ4Yy9ldnMvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ5ODExMzUwOX19fV19&Signature=hHbIGRoXzdzFrZQQus9WpqzjaGN47LOsn8FBRiukmqHUPiM3Ftv4kdpFq2B5WmIWJsdsXwAZRzEVRc87jap7XF2NjhWDCwfQSpY5ggbL51yEOoxG3vk-YXP9FNxMhS~GaMngkwrKwpkZk9ZtG1upBObQvdNRfR1VfeDwE2yLBjnhxPI5r6rrqxMnh2Qx7op4TqtAg2lCmt-oKUVTkd9is9acQ~Oj5VcYRvWZ7mPcMWQNkexlW0pUmMqEsDfUlg~ELNw5167JO9bO3CUp7J~cJdrg4E-YPdEoq6Eid9qsgti-ZbgROtZkJJFseC5XaC6mvGjsgXCsGEKLk7DftMBGAQ__&Key-Pair-Id=DLVR' for reading
frame=34285 fps=1741 q=-1.0 Lsize= 627715kB time=00:23:49.97 bitrate=3596.0kbits/s speed=72.6x
video:604091kB audio:22344kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.204403%

Command Line Arguments You Gave :
main.py -i "www.crunchyroll.com/yowamushi-pedal-new-generation/episode-24-733943" -u "amirnoxik" -p "xxxxxxxx" -r "720p" -v

Long Explanation :
this probleme is happening in just one computer
because i'm using it on 2
but i get this probleme in just one of them

1
best free image hosting site

Verbose Log Link
https://drive.google.com/file/d/0B0N2AHg746RPTHR4ejFnX1B5Ymc/view

Hidive

any chance to add hidive to Supported Websites?

Could not log in because special character on PW

Command Line Arguments You Gave :

D:\animu>anime-dl.exe -i "http://www.crunchyroll.com/angels-3piece/episode-3-the-boy-on-hiatus-descends-and-flees-and-the-girls-from-the-church-742989" -u "xxxxx" -p "[password contains ñ]" --skip
Will be skipping video downloads
Trying to login...
Unable to Log you in. Check credentials again.
Traceback (most recent call last):
File "anime_dl_main_.py", line 19, in
File "anime_dl_main_.py", line 73, in main
File "anime_dl\AnimeDL.py", line 29, in init
File "anime_dl\sites\crunchyroll.py", line 46, in init
TypeError: 'NoneType' object is not iterable
Failed to execute script main

Long Explanation : I try to log in to download only subtitles, but i get everytime this error. Tried also with an account without ñ and it worked perfectly. That's the only difference between accounts.

Error downloading Boruto (local variable 'rtmpDL' referenced before assignment)

anime-dl.exe -i "http://www.crunchyroll.com/boruto-naruto-next-generations/episode-3-metal-lee-goes-wild-732527" -u "" -p "" -r "1080p"
Trying to login...
Logged in successfully...
Grabbing Links for 1080p Streams.
Writing subtitles to files...
Writing subtitles to files...
Writing subtitles to files...
Writing subtitles to files...
Writing subtitles to files...
Writing subtitles to files...
Traceback (most recent call last):
File "anime_dl_main_.py", line 18, in
File "anime_dl_main_.py", line 69, in main
File "anime_dl\AnimeDL.py", line 27, in init
File "anime_dl\sites\crunchyroll.py", line 42, in init
File "anime_dl\sites\crunchyroll.py", line 215, in singleEpisode
UnboundLocalError: local variable 'rtmpDL' referenced before assignment
Failed to execute script main

Issues running in windows [FUNIMATION SUPPORT]

Hello,
Thank you so much for taking the time to create this software. I have python, nodejs, RTMPDump, and mkvmerge.exe installed and in my %PATH%. I have downloaded the anime-dl-master.zip and unpacked it and did the pip install. I have downloaded the anime-dl.exe binary and placed it into the anime-dl-master folder as well as in the anime_dl folder. No matter what I do I still get the same error. If I run it as the binary
anime-dl.exe -i https://www.funimation.com/shows/my-hero-academia/ -u PRIVATE -p PRIVATE -v -l dub
I get an output like:
('This lang : ', 'dub')
Traceback (most recent call last):
File "anime_dl_main_.py", line 19, in
File "anime_dl_main_.py", line 73, in main
File "anime_dl\AnimeDL.py", line 45, in init
File "anime_dl\sites\funimation.py", line 19, in init
File "anime_dl\sites\funimation.py", line 74, in singleEpisode
AttributeError: 'NoneType' object has no attribute 'group'
[9428] Failed to execute script main

If I try to run it under the main.py inside the anime_dl folder I get:
Traceback (most recent call last):
File "C:\PATH\anime-dl-master\anime_dl_main_.py", line 9, in
from AnimeDL import *
File "C:\PATH\anime-dl-master\anime_dl\AnimeDL.py", line 8, in
import sites
File "C:\PATH\anime-dl-master\anime_dl\sites_init_.py", line 1, in
import crunchyroll
ModuleNotFoundError: No module named 'crunchyroll'

Could you give me any advice?

Thanks

wakanim.tv Site-Request

Searching for a particular anime instead of having to open the browser to get the link
Select the video quality i.e 1080p, 720p, 480p or 360p
Episode Range if one chooses not to download the whole episodes

Could not find the show links

Command Line Arguments:
anime-dl.exe -i http://www.crunchyroll.com/i-cant-understand-what-my-husband-is-saying -u xxxxxx -p xxxxxx -v
Verbose Log Link:
https://pastebin.com/KKnvXr74
Long Explanation:

This should have downloaded every episode of the show in the link as stated in the example syntax.
What happened was the script was unable to find any links and therefore it did not download anything.
Had I linked an individual episode's page, it would download that single episode's link but nothing more.
To restate the issue, single Episode URLs function, "Whole Show" URLs do not detecting links and
therefore will not download episodes.  After logging in with a "Whole Show" link, CMD window states:
"Could not find the show links."

That about sums it up.

video to use anime-dl

i am new to this type of stuff,i couldn't follow the instructions please make a video to install and use

ImportError: No module named anime_dl

hello,

i got error when trying to call script.

i did chmod, installed Dependencies, installed python 3.6, nodejs, ...

Thanks

Traceback (most recent call last):
  File "./__main__.py", line 9, in <module>
    from AnimeDL import *
  File "/root/anime_dl/anime-dl-master/anime_dl/AnimeDL.py", line 8, in <module>
    import sites
  File "/root/anime_dl/anime-dl-master/anime_dl/sites/__init__.py", line 1, in <module>
    import sites.crunchyroll
  File "/root/anime_dl/anime-dl-master/anime_dl/sites/crunchyroll.py", line 25, in <module>
    from anime_dl import animeName
ImportError: No module named anime_dl

Chia-anime.tv feature request

I want to request for a script/windows binary that can download anime from chia-anime.tv which we'll provide the URLs to which the anime episodes are listed
The Features that I'll love to be present in the script are:

  1. Searching for a particular anime instead of having to open the browser to get the link
  2. Select the video quality i.e 1080p, 720p, 480p or 360p
  3. Storing the download links to a .txt file so that they can be added through batch download on IDM
  4. Episode Range if one chooses not to download the whole episodes

ModuleNotFoundError: No module named 'compat'

Next import error:

  File "AnimeDL.py", line 9, in <module>
    import sites
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\sites\__init__.py", line 1, in <module>
    import sites.crunchyroll
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\sites\crunchyroll.py", line 10, in <module>
    from external.utils import bytes_to_intlist, intlist_to_bytes
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\external\__init__.py", line 1, in <module>
    import external.aes
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\external\aes.py", line 5, in <module>
    from .utils import bytes_to_intlist, intlist_to_bytes
  File "C:\Users\x\Desktop\anime-dl-master\anime_dl\external\utils.py", line 37, in <module>
    from compat import (
ModuleNotFoundError: No module named 'compat'

Error 2 System couldn't found the specified file

Hi, my problem is when run, this message appears:

C:\cr> anime-dl.exe -i http://www.crunchyroll.com/hundred/ -u USER -p PASS -v
Trying to login...
Logged in successfully...
Total Episodes to download : 12
Downloading Hundred - 1 [1280x720].enUS.ass ...
Couldn't connect to the m3u8 file download link...
[Error 2] System couldn't found the specified file

Any idea? Thanks...

Please enter the required arguments. Run __main__.py --help

Subject :
Please enter the required arguments. Run main.py --help

Command Line Arguments You Gave :
main.py -i "http://www.crunchyroll.com/the-royal-tutor/episode-1-the-royal-tutor-arrives-733961" -u "my username" -p "my password" -r "default"

Long Explanation :
I have done all the steps. but , when i want to start downloading using Python Script, I enter the line argument Above, The download should begin, but i get this msg
Please enter the required arguments. Run __main__.py --help
the same msg i see when i open anime-dl.exe

problem exe file

hey i did download all programes you wrote in 'ReadMe' but i can't download 'anime-dl.exe'
when i try to download it the antivirus will removed could you please tell me how to fix it?

Seems like this video isn't available... cannot use a string pattern on a bytes-like object

Command Line Arguments You Gave : python3.6 main.py -i "http://www.crunchyroll.com/dragon-ball-super/episode-1-the-peace-reward-who-will-get-the-100-million-zeni-723163" -u "xxxxx" -p "xxxxx" -r "1080p" -l "sub" -v

Verbose Log Link : https://pastebin.com/iS9tK27k

Long Explanation : Been trying this with multiple anime and with/without the language argument. Can't seem to get it to work at all with any anime on the site. Read the debugging log, seems like it isn't able to grab the video file for some reason.

Error Sub ok - but no video (rtmpDL)

Hi ! Since today subtitle are donwloaded correctly but not the video file.

Error:
UnboundLocalError: local variable 'rtmpDL' referenced before assignment
Failed to execute script main

error log :

Error Log.txt

I can't download an anime because of the title.

Hello,

First, Thank you so much for creating this amazing script <3

I'm trying to download this anime from crunchyroll:

http://www.crunchyroll.com/worldend-what-do-you-do-at-the-end-of-the-world-are-you-busy-will-you-save-us

But whenever I press enter I get [Errno 22].

I'm using this command:

anime-dl.exe -i "http://www.crunchyroll.com/worldend-what-do-you-do-at-the-end-of-the-world-are-you-busy-will-you-save-us/episode-1-733675" -u "xxxx" -p "xxxx" -r "1080"

This is the error I get after I press enter:

anime-dl-issue

I tried to download 1 episode and the whole series and I got the same error, I think your script can't process the long title or something.

I have downloaded many episodes just fine and this is the 1st anime that I have issue with.

Thank you again.

Downloading from Funimation dont work

so trying to download from funimation with anime-dl.exe -i "https://www.funimation.com/shows/fairy-tail/" -u "PRIVATE" -p "PRIVATE" -r "1080p" -l "english" -rn 1-10 but get this error
('This lang : ', 'english')
Traceback (most recent call last):
File "anime_dl_main_.py", line 18, in
File "anime_dl_main_.py", line 75, in main
File "anime_dl\AnimeDL.py", line 46, in init
File "anime_dl\sites\funimation.py", line 16, in init
File "anime_dl\sites\funimation.py", line 71, in singleEpisode
AttributeError: 'NoneType' object has no attribute 'group'
[6900] Failed to execute script main

attached my error log file changed my password and username to PRIVATE in log and command
Error Log.log

Configuration file in binary directory and various enhancements.

Suggesting a configuration file be added and placed in the binary directory, with additional parameters defined for output directory, subtitle track selection, and cleaner output during execution (perhaps a progress bar instead).

Something like...

## anime-dl config file. Parameters default unless specified below...
# "-d 'ABSDIR'" for specified output directory. Defaults to current working directory.
d="Absolute/User/Given/Directory/"
# "-c 'y'" for clean output. Default "y".
c=y
# "-s 'locale'" for specified subtitle track. Default downloads all available tracks.
s=enUS

r=1080p
u=username
p=password

Error downloading hunter X hunter

anime-dl.exe -i "http://www.crunchyroll.com/hunter-x-hunter/episode-1-departure-x-and-x-friends-584886" -u "" -p "" -r "1080p"

Trying to login...
Logged in successfully...
Grabbing Links for 1080p Streams.
Writing subtitles to files...
Writing subtitles to files...
Writing subtitles to files...
Writing subtitles to files...
Traceback (most recent call last):
File "anime_dl_main_.py", line 16, in
File "anime_dl_main_.py", line 56, in main
File "anime_dl\AnimeDL.py", line 27, in init
File "anime_dl\sites\crunchyroll.py", line 38, in init
File "anime_dl\sites\crunchyroll.py", line 167, in singleEpisode
File "site-packages\requests\sessions.py", line 501, in get
File "site-packages\cfscrape_init_.py", line 39, in request
File "site-packages\requests\sessions.py", line 488, in request
File "site-packages\requests\sessions.py", line 603, in send
File "site-packages\requests\sessions.py", line 685, in get_adapter
requests.exceptions.InvalidSchema: No connection adapters were found for 'mp4:c6/s/ve762525/video.mp4'
Failed to execute script main

ValueError: Error parsing Cloudflare IUAM Javascript challenge

Looks like it is broken again. I guess Cloudflare changed their scripts.
Screen Output

c:\>anime-dl -u ploplord -p DukePlopsalots -r 480p -rn 9 -i http://www.crunchyroll.com/twin-star-exorcists
Trying to login...
Traceback (most recent call last):
  File "anime_dl\__main__.py", line 18, in <module>
  File "anime_dl\__main__.py", line 75, in main
  File "anime_dl\AnimeDL.py", line 30, in __init__
  File "anime_dl\sites\crunchyroll.py", line 54, in __init__
  File "anime_dl\sites\crunchyroll.py", line 82, in webpagedownloader
  File "requests\sessions.py", line 521, in get
  File "site-packages\cfscrape\__init__.py", line 47, in request
  File "site-packages\cfscrape\__init__.py", line 77, in solve_cf_challenge
  File "site-packages\cfscrape\__init__.py", line 107, in solve_challenge
ValueError: Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script.

Please read https://github.com/Anorov/cloudflare-scrape#updates, then file a bug report at https://github.com/Anorov/cloudflare-scrape/issues.
[9224] Failed to execute script __main__
c:\>

whats happen

hey when i tried to download episodes i got this message https://imgur.com/H0ctCy1 and i found out that
anime-dl.exe has faded also i cant download it
i tried this on two pc and the same result

Suggestion: Requirements.txt

I would like to suggest adding the following to "requirements.txt" so that users may make their own .exe with your batch file. I just reinstalled Windows, Python 3.6 x64, node, etc. and thse were the only 3 items I needed in addition to what you already had in the requirements file. Optionally, you could make a "Build_Requirements.txt" and dump them in there.

pyinstaller
bs4
tqdm

Thanks for the script. It does what it needs to.

--skip not working

Hi, i've try do download all subtitle from 12 episodes without the vidéo but the argument "--skip" is unrecognized.

here the code I use

@echo off set /p lien= Entrer le lien echo %lien% pause anime-dl.exe -i "%lien%" -u "*****" -p "*****" -r "720" --skip -l "french" pause

Couldn't connect to the m3u8 file download link...

[root@dattskulls anime_dl]# ./__main__.py -i http://www.crunchyroll.com/death-march-to-the-parallel-world-rhapsody/episode-11-the-fantasy-conspiracy-that-started-with-a-death-march-759569 -u XXXX -p XXXXX -r 720 -l ptBR --verbose
Trying to login...
Logged in successfully...
Downloading Death March To The Parallel World Rhapsody - 11 [1280x720].enUS.ass ...
Downloading Death March To The Parallel World Rhapsody - 11 [1280x720].esLA.ass ...
Downloading Death March To The Parallel World Rhapsody - 11 [1280x720].frFR.ass ...
Downloading Death March To The Parallel World Rhapsody - 11 [1280x720].arME.ass ...
Downloading Death March To The Parallel World Rhapsody - 11 [1280x720].itIT.ass ...
Downloading Death March To The Parallel World Rhapsody - 11 [1280x720].deDE.ass ...
Downloading Death March To The Parallel World Rhapsody - 11 [1280x720].ruRU.ass ...
Couldn't connect to the m3u8 file download link...
[Errno 2] No such file or directory]

"verbose" dump:

DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['http://www.crunchyroll.com/death-march-to-the-parallel-world-rhapsody/episode-11-the-fantasy-conspiracy-that-started-with-a-death-march-759569'], language=['pt'], password=['XXXX'], range='All', resolution=['720'], skip=False, username=['XXXX'], verbose=True, version=False)
DEBUG: Operating System : Linux - 2.6.32-696.3.1.el6.x86_64 - #1 SMP Tue May 30 19:52:55 UTC 2017
DEBUG: Python Version : 2.7.13 (64bit)
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=22230766&jschl_vc=61d45eb3f9865891d3512937b192158e&pass=1521737532.783-Min57%2BKaAO HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "POST /login HTTP/1.1" 302 None
DEBUG: https://www.crunchyroll.com:443 "GET / HTTP/1.1" 200 None
DEBUG: Starting new HTTP connection (1): www.crunchyroll.com
DEBUG: http://www.crunchyroll.com:80 "GET /death-march-to-the-parallel-world-rhapsody/episode-11-the-fantasy-conspiracy-that-started-with-a-death-march-759569 HTTP/1.1" 200 None
DEBUG: video_id : 759569
DEBUG: info_url : http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=759569&video_format=106&video_quality=62&current_page=http://www.crunchyroll.com/death-march-to-the-parallel-world-rhapsody/episode-11-the-fantasy-conspiracy-that-started-with-a-death-march-759569
DEBUG: Starting new HTTP connection (1): www.crunchyroll.com
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=759569&video_format=106&video_quality=62&current_page=http://www.crunchyroll.com/death-march-to-the-parallel-world-rhapsody/episode-11-the-fantasy-conspiracy-that-started-with-a-death-march-759569 HTTP/1.1" 200 None
DEBUG: m3u8_file_link : https://dl.v.vrv.co/evs/b5913a2210d2aba844399771a565bd46/assets/5e8e4c6599d73aa177a03b053034f775_3433708.mp4/master.m3u8?Policy=ewoiU3RhdGVtZW50IjpbCnsKIlJlc291cmNlIjoiaHR0cCo6Ly9kbC52LnZydi5jby9ldnMvYjU5MTNhMjIxMGQyYWJhODQ0Mzk5NzcxYTU2NWJkNDYvYXNzZXRzLzVlOGU0YzY1OTlkNzNhYTE3N2EwM2IwNTMwMzRmNzc1XzM0MzM3MDgubXA0L21hc3Rlci5tM3U4IiwKIkNvbmRpdGlvbiI6ewoiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MjE5MTAyOTh9Cn0KfQpdCn0_&Signature=hmMllW3ufEMHTtgJWNCMtoI3-~zM8lIrpThyV0UxvYv5lfvBEWygEN9e9f3pYCy11s3Ktz3UHNiBZKRktfM0QGAW4ZDdiKO6k0NVg0M1NrdXj3FMnNXbdo2bFIe6dHNWqWK6R9ZHNEkAlgjOEW8P4jMc-IMb4irO4lwc6U1WBXCMIXxUSqg2LRcxbbt8YBHZFUn07u8IgY50t-uGWEoji2yVtgnobtcSOGcDBTrPLb~TEolhHKxcr-Lt5GIdd~gKDE5t-9zBzYuaLE9d5onPRmoAGzTctF9eUbZQo3ZgvYdRba6Z84bqdoIcG-oVLD7Sv8FykEDeTbADjKMfjW91HQ__&Key-Pair-Id=DLVR
DEBUG: anime_name : Death March to the Parallel World Rhapsody
DEBUG: episode_number : 11
DEBUG: video_resolution : 1280x720
DEBUG: file_name : Death March To The Parallel World Rhapsody - 11 [1280x720].mp4
DEBUG:
----- Subs Downloading Started -----

DEBUG: Starting new HTTP connection (1): www.crunchyroll.com
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=312743 HTTP/1.1" 200 None
DEBUG: iv : sbW3RPT9fouSe/Hr42qfbw==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=312771 HTTP/1.1" 200 None
DEBUG: iv : sd1NbK7siHJVyLa28ePGcg==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=312755 HTTP/1.1" 200 None
DEBUG: iv : VprDDOtzK/5ZrgibVr1a1g==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=312737 HTTP/1.1" 200 None
DEBUG: iv : YS/+/COlwyc2Ohn5cqkD5Q==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=312739 HTTP/1.1" 200 None
DEBUG: iv : ZO0IglIGrLvqChitB7AuPA==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=312767 HTTP/1.1" 200 None
DEBUG: iv : GnM+TjsnUT009gz8U8VUlQ==
DEBUG: http://www.crunchyroll.com:80 "GET /xml/?req=RpcApiSubtitle_GetXml&subtitle_script_id=312777 HTTP/1.1" 200 None
DEBUG: iv : cvDwxJwJs7QIBTC/wxvCVQ==
DEBUG:
----- Subs Downloaded -----

DEBUG: Starting new HTTPS connection (1): dl.v.vrv.co
DEBUG: https://dl.v.vrv.co:443 "GET /evs/b5913a2210d2aba844399771a565bd46/assets/5e8e4c6599d73aa177a03b053034f775_3433708.mp4/master.m3u8?Policy=ewoiU3RhdGVtZW50IjpbCnsKIlJlc291cmNlIjoiaHR0cCo6Ly9kbC52LnZydi5jby9ldnMvYjU5MTNhMjIxMGQyYWJhODQ0Mzk5NzcxYTU2NWJkNDYvYXNzZXRzLzVlOGU0YzY1OTlkNzNhYTE3N2EwM2IwNTMwMzRmNzc1XzM0MzM3MDgubXA0L21hc3Rlci5tM3U4IiwKIkNvbmRpdGlvbiI6ewoiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MjE5MTAyOTh9Cn0KfQpdCn0_&Signature=hmMllW3ufEMHTtgJWNCMtoI3-~zM8lIrpThyV0UxvYv5lfvBEWygEN9e9f3pYCy11s3Ktz3UHNiBZKRktfM0QGAW4ZDdiKO6k0NVg0M1NrdXj3FMnNXbdo2bFIe6dHNWqWK6R9ZHNEkAlgjOEW8P4jMc-IMb4irO4lwc6U1WBXCMIXxUSqg2LRcxbbt8YBHZFUn07u8IgY50t-uGWEoji2yVtgnobtcSOGcDBTrPLb~TEolhHKxcr-Lt5GIdd~gKDE5t-9zBzYuaLE9d5onPRmoAGzTctF9eUbZQo3ZgvYdRba6Z84bqdoIcG-oVLD7Sv8FykEDeTbADjKMfjW91HQ__&Key-Pair-Id=DLVR HTTP/1.1" 200 None
DEBUG: m3u8_file_text : https://comcast-hls-media-vod-ellation.vip1-iad1.dlvr1.net/663734b6-2df1-11e8-8086-6971bcd41d8c/evs/b5913a2210d2aba844399771a565bd46/assets/5e8e4c6599d73aa177a03b053034f775_3433708.mp4/index-v1-a1.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jb21jYXN0LWhscy1tZWRpYS12b2QtZWxsYXRpb24udmlwMS1pYWQxLmRsdnIxLm5ldC82NjM3MzRiNi0yZGYxLTExZTgtODA4Ni02OTcxYmNkNDFkOGMvZXZzL2I1OTEzYTIyMTBkMmFiYTg0NDM5OTc3MWE1NjViZDQ2L2Fzc2V0cy8qIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTIxOTEwMjk4fX19XX0_&Signature=KqHbKpEMuGpaCoXOre8iq33kWk06P3P4keL-qzmQDXbwS4MqQzxdPKluuwbh-ifQGjwhI3vLXXs0iZAAaLFkVcomOftw2~jR3fvRpsvaKc~JO3wqvvU-ornQR-MLu-Vyf29aH5US~n-DPvURH9cRwwrb4l8~F5bovF6Hni070afS4Y~GyESifWXr3dlrhQEjZ1piFcUe3kUpocKoYRPpP3RSgN3ZTIXGTV79krw1w2OTfp0yhVoSZENX1BcVIa0kxcEzYv1hhIRii-MVB1VD4SGXJDl1s0VhNnT6N3VQSUbM1Tg9txBtU0-o-MlVlfIHPqBPDrMgxVyi~-JMBf0nHA__&Key-Pair-Id=DLVR
DEBUG: ffmpeg_command : ffmpeg -i "https://comcast-hls-media-vod-ellation.vip1-iad1.dlvr1.net/663734b6-2df1-11e8-8086-6971bcd41d8c/evs/b5913a2210d2aba844399771a565bd46/assets/5e8e4c6599d73aa177a03b053034f775_3433708.mp4/index-v1-a1.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jb21jYXN0LWhscy1tZWRpYS12b2QtZWxsYXRpb24udmlwMS1pYWQxLmRsdnIxLm5ldC82NjM3MzRiNi0yZGYxLTExZTgtODA4Ni02OTcxYmNkNDFkOGMvZXZzL2I1OTEzYTIyMTBkMmFiYTg0NDM5OTc3MWE1NjViZDQ2L2Fzc2V0cy8qIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTIxOTEwMjk4fX19XX0_&Signature=KqHbKpEMuGpaCoXOre8iq33kWk06P3P4keL-qzmQDXbwS4MqQzxdPKluuwbh-ifQGjwhI3vLXXs0iZAAaLFkVcomOftw2~jR3fvRpsvaKc~JO3wqvvU-ornQR-MLu-Vyf29aH5US~n-DPvURH9cRwwrb4l8~F5bovF6Hni070afS4Y~GyESifWXr3dlrhQEjZ1piFcUe3kUpocKoYRPpP3RSgN3ZTIXGTV79krw1w2OTfp0yhVoSZENX1BcVIa0kxcEzYv1hhIRii-MVB1VD4SGXJDl1s0VhNnT6N3VQSUbM1Tg9txBtU0-o-MlVlfIHPqBPDrMgxVyi~-JMBf0nHA__&Key-Pair-Id=DLVR" -c copy -bsf:a aac_adtstoasc "/anime-dl-master/anime_dl/Death March To The Parallel World Rhapsody - 11 [1280x720].mp4"

I'm using CentOS 6.8.

Leveraging, how do I download the ptBR caption? they all come together...

Thanks and sorry about my english...

VRV.co feature request

I've noticed VRV is listed as "Under Development" when attempting to download from it. Is there any timeline on implementing support for it?

Cannot find show links

Keep getting this:

D:\>anime-dl -i "http://www.crunchyroll.com/parasyte-the-maxim-" -u xxxxx -p xxxxx Trying to login... Logged in successfully... Could not find the show links. Report on https://github.com/Xonshiz/anime-dl/issues/new

Error log as follows:
DEBUG: You have successfully set the Debugging On. DEBUG: Arguments Provided : Namespace(input=['http://www.crunchyroll.com/gate'], language='Japanese', password=['xxxxx'], range='All', resolution='720p', skip=False, username=['xxxxx'], verbose=True, version=False) DEBUG: Operating System : Windows - 8.1 - 6.3.9600 DEBUG: Python Version : 2.7.13 (32bit) DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 503 None DEBUG: Resetting dropped connection: www.crunchyroll.com DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=5&jschl_vc=xxxxx&pass=xxxxx HTTP/1.1" 302 165 DEBUG: https://www.crunchyroll.com:443 "GET /login HTTP/1.1" 200 None DEBUG: https://www.crunchyroll.com:443 "POST /login HTTP/1.1" 302 None DEBUG: https://www.crunchyroll.com:443 "GET / HTTP/1.1" 200 None DEBUG: Starting new HTTP connection (1): www.crunchyroll.com DEBUG: http://www.crunchyroll.com:80 "GET /gate HTTP/1.1" 200 None DEBUG: Starting new HTTP connection (1): www.crunchyroll.com DEBUG: http://www.crunchyroll.com:80 "GET /gate HTTP/1.1" 200 None

Any ideas? If I do the episodes individually by copying each episode's website and pasting it into anime-dl, then it grabs the file fine.

Feature suggestion - set 'language' prop. for subs and allow selecting default track

Subject:

For crunchyroll (don't know about the others), subtitle tracks aren't assigned a language. It would be cool to have the language set, so that all players that allow setting things like: "use lang regardless of what default track is in the file" could work. Also, I've seen that the default subtitle language is hard-coded as English, can it be turned into a new script parameter?

Long Explanation:

  1. Note that I only use crunchyroll, I don't know how thing works for other sites, nor if what I'm proposing is applicable to them.
  2. Also note that here I'm only talking about subtitle tracks, but it might be interesting to also consider audio/video tracks.

I can barely read python but for setting the language on crunchyroll subtitles it should be enough to add --language "N:lang" on all the lines regarding subtitles:

subtitles_files = []
for sub_file in glob("*.ass"):
if sub_file.endswith(".enUS.ass"):
subtitles_files.insert(0,
"--track-name 0:English(US) --default-track 0:yes --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".enGB.ass"):
subtitles_files.append(
"--track-name 0:English(UK) --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".esLA.ass"):
subtitles_files.append("--track-name 0:Español --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".esES.ass"):
subtitles_files.append(
"--track-name 0:Español(España) --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".ptBR.ass"):
subtitles_files.append(
"--track-name 0:Português(Brasil) --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".ptPT.ass"):
subtitles_files.append(
"--track-name 0:Português(Portugal) --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".frFR.ass"):
subtitles_files.append(
"--track-name 0:Français(France) --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".deDE.ass"):
subtitles_files.append("--track-name 0:Deutsch --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".arME.ass"):
subtitles_files.append("--track-name 0:Arabic --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".itIT.ass"):
subtitles_files.append("--track-name 0:Italiano --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".arME.ass"):
subtitles_files.append("--track-name 0:Arabic --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
elif sub_file.endswith(".trTR.ass"):
subtitles_files.append("--track-name 0:Türkçe --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')
else:
subtitles_files.append("--track-name 0:und --default-track 0:no --sub-charset 0:utf-8 " + '"' + str(
os.path.realpath(sub_file)) + '" ')

Enhancement - Recursive Folders for each Anime

Anime-DL currently downloads shows in the main folder and then moves objects to a subfolder named "Output". How much effort would it take to send episodes to Output[Anime Title]?

The function which moves objects to Output would need modified to check/verify folder [Anime Title] existed, and then send objects to the respective recursed folder.

As an example:
http://www.crunchyroll.com/naruto/episode-220-departure-535236 would be sent to "\Output\naruto[episode]"
while
http://www.crunchyroll.com/darling-in-the-franxx/episode-10-the-city-of-eternity-759593 would be sent to "\Output\darling-in-the-franxx[episode]"

To improve efficiency, Anime-DL could also check the respective show's folder for the episode(s) so that it does not download a show that already exists. I believe it does this with the Output folder now, except it downloads before the verification and leaves the downloaded file in folder "\Anime-DL" if "\Output" already contains the file.

If I ever had time, I would consider looking into doing this modification as most of it only requires optimizing/modifying existing code. Unfortunately, real life gets in the way.

Minor wiki suggestion

Subject:

By default PowerShell doesn't look in the current directory for dependencies, windows wiki might use some tweaks to be more noob friendly.

Long Explanation:

In the windows part of the wiki it says:

You need to download FFmpeg and Node.js and keep them in the same directory as that of this windows binary file.

and:

Hold down the SHIFT key and while holding down the SHIFT key, RIGHT CLICK and select Open Command Prompy Here from the options that show up.

With windows 10, if you shift-click in explorer you have the option to open a PoweShell instead of the old command prompt. And since PoweShell doesn't look in the current directory for dependencies, it will not find node/ffmpeg/mkvmerge. Using the old cmd.exe works just fine.

Some minor changes to the wiki might save windows users some troubles, like:

  • If you are using PowerShell (and if you are on windows 10 and you open it by shift-right-clicking you are) you must have the dependencies in the path.
  • If you use the old command prompt you are good to go just by having the dependencies next to the script/binary.

Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script.

2018-04-08_22-41-37

In text:

Trying to login...
Traceback (most recent call last):
  File "anime_dl\__main__.py", line 18, in <module>
  File "anime_dl\__main__.py", line 75, in main
  File "anime_dl\AnimeDL.py", line 30, in __init__
  File "anime_dl\sites\crunchyroll.py", line 46, in __init__
  File "anime_dl\sites\crunchyroll.py", line 82, in webpagedownloader
  File "requests\sessions.py", line 521, in get
  File "site-packages\cfscrape\__init__.py", line 47, in request
  File "site-packages\cfscrape\__init__.py", line 77, in solve_cf_challenge
  File "site-packages\cfscrape\__init__.py", line 107, in solve_challenge
ValueError: Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script.

Please read https://github.com/Anorov/cloudflare-scrape#updates, then file a bug report at https://github.com/Anorov/cloudflare-scrape/issues.
[6788] Failed to execute script __main__

Funimation: Under Development!

Hello. I tested out your script today on Funimation as a registered user. I dislike having buffering issues while watching content I paid to stream on there, thus I thought this would be a good idea... D/L, then watch.
Here is the result:

D:\anime-dl-master\anime_dl>__main__.py -i "https://www.funimation.com/shows/tokyo-ghoul/va-new-surge/uncut/" -u myusername -p mypassword -l english -r 720p
Under development!

D:\anime-dl-master\anime_dl>

Any thoughts on the "Under development!" section? It only posts when I insert a username/password. On the other hand, I can't get my content without it. Obviously, I assume it is just something you're working on and also that patience is a virtue.

Once I find something to watch that I won't run into the Username/Pass issue, I'm looking forward to using this. Thanks for the program!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.