Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Error downloading some videos from crunchyroll -- TypeError: argument of type 'NoneType' is not iterable #7930
Comments
|
Like @dstftw noted this Crunchyroll URL is geo-restricted - only people from allowed regions can check the issue. (I can't access that URL) Looking at the line where error is thrown (1) it would appear that |
|
From what I can tell, what is throwing the error is actually a bug on crunchyroll's own website. For @elitefroggy's two episodes: http://www.crunchyroll.com/shin-sekai-yori-from-the-new-world/episode-20-a-cold-and-sunlit-place-611609, if you try to play the 480p video it's broken on the site while 360p is just fine and dandy. When crunchyroll.py hits these two errors is when it crashes and spits out the 'NoneType' error message (because technically being passed is an empty URL string). I'm not a coder so I wouldn't know how to make crunchyroll.py just ignore the dead link errors and just not let you download said dead format links. Hope that helps. Edit: To get a specific video format via web browser, you specify it as part of the URL, so example: http://www.crunchyroll.com/shin-sekai-yori-from-the-new-world/episode-6-escape-611581?p480=1 brings up the 480p video from elitefroggy's first problem link. if you use the same link with youtube-dl, it still tries to download all the media info for all the various formats and then tosses out the same 'NoneType' error. |
|
Maybe change https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/crunchyroll.py#L342:
|
|
Works for me with my patched version.
|
|
This issue will be fixed in the next version. |
Downloading both this: http://www.crunchyroll.com/shin-sekai-yori-from-the-new-world/episode-6-escape-611581
and episode 20 cause this error to occur...