While trying to download the series "Shin Sekai Yori" from crunchyroll I get an AttributeError:
AttributeError: 'NoneType' object has no attribute 'strip'
It only happened on Episode 24; Here is the verbose output for the problem episode
$ youtube-dl -u 'UserNameRedacted' --sub-format ass --sub-lang enUS --write-sub --verbose http://www.crunchyroll.com/shin-sekai-yori-from-the-new-world/episode-24-torchlight-in-the-darkness-611617
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'--sub-format', u'ass', u'--sub-lang', u'enUS', u'--write-sub', u'--verbose', u'http://www.crunchyroll.com/shin-sekai-yori-from-the-new-world/episode-24-torchlight-in-the-darkness-611617']
Type account password and press [Return]:
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.04.1
[debug] Python version 2.7.10 - Linux-4.2.0-34-generic-x86_64-with-Ubuntu-15.10-wily
[debug] exe versions: avconv 2.7.6-0ubuntu0.15.10.1, avprobe 2.7.6-0ubuntu0.15.10.1, ffmpeg 2.7.6-0ubuntu0.15.10.1, ffprobe 2.7.6-0ubuntu0.15.10.1, rtmpdump 2.4
[debug] Proxy map: {}
[Crunchyroll] Logging in
[Crunchyroll] 611617: Downloading webpage
[Crunchyroll] 611617: Downloading media info
[Crunchyroll] 611617: Downloading media info for 360p
[Crunchyroll] 611617: Downloading media info for 480p
[Crunchyroll] 611617: Downloading media info for 720p
[Crunchyroll] 611617: Downloading media info for 1080p
[Crunchyroll] 611617: Downloading subtitles for English (US)
[Crunchyroll] 611617: Downloading subtitles for Español
[Crunchyroll] 611617: Downloading subtitles for Português (Brasil)
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 6, in <module>
youtube_dl.main()
File "/usr/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 405, in main
_real_main(argv)
File "/usr/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 395, in _real_main
retcode = ydl.download(all_urls)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1502, in download
res = self.extract_info(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 661, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 707, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1086, in process_video_result
format['http_headers'] = self._calc_headers(full_format_info)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 973, in _calc_headers
cookies = self._calc_cookies(info_dict)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 980, in _calc_cookies
pr = compat_urllib_request.Request(info_dict['url'])
File "/usr/lib/python2.7/urllib2.py", line 229, in __init__
self.__original = unwrap(url)
File "/usr/lib/python2.7/urllib.py", line 1075, in unwrap
url = url.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
Though it does work on many other videos including every other episode in the "Shin Sekai Yori" series.
For example here is the verbose output for episode 25:
I am unsure of how to fix this problem as I am unfamiliar with python and youtube-dl's code base so any help would be appreciated and any additional information other than secure data (for example: username and password along with secure keys) can be supplied upon request if needed.
While trying to download the series "Shin Sekai Yori" from crunchyroll I get an AttributeError:
AttributeError: 'NoneType' object has no attribute 'strip'
It only happened on Episode 24; Here is the verbose output for the problem episodeThough it does work on many other videos including every other episode in the "Shin Sekai Yori" series. For example here is the verbose output for episode 25:
I am unsure of how to fix this problem as I am unfamiliar with python and youtube-dl's code base so any help would be appreciated and any additional information other than secure data (for example: username and password along with secure keys) can be supplied upon request if needed.