Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoneType' object has no attribute 'get' downloading from Instagram #5919

Closed
ekalin opened this issue Jun 7, 2015 · 1 comment
Closed

'NoneType' object has no attribute 'get' downloading from Instagram #5919

ekalin opened this issue Jun 7, 2015 · 1 comment

Comments

@ekalin
Copy link

@ekalin ekalin commented Jun 7, 2015

Does not happen for all users. Apparently happens when the user has lots of posts and/or it's an old account, but I can't confirm. Here's one example of a failing account:

$ ./youtube-dl --verbose https://instagram.com/rafakalimann/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'https://instagram.com/rafakalimann/']
[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-3.16.0-4-amd64-x86_64-with-debian-stretch-sid
[debug] exe versions: ffmpeg 2.6.3, ffprobe 2.6.3
[debug] Proxy map: {}
[instagram:user] rafakalimann: Downloading page 1
[instagram:user] rafakalimann: Downloading page 2
......... [similar lines, nothing else in between] ....
[instagram:user] rafakalimann: Downloading page 72
[instagram:user] rafakalimann: Downloading page 73
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "./youtube-dl/main.py", line 19, in
File "./youtube-dl/youtube_dl/init.py", line 405, in main
File "./youtube-dl/youtube_dl/init.py", line 395, in _real_main
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 1502, in download
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 650, in extract_info
File "./youtube-dl/youtube_dl/extractor/common.py", line 273, in extract
File "./youtube-dl/youtube_dl/extractor/instagram.py", line 103, in _real_extract
AttributeError: 'NoneType' object has no attribute 'get'

@yan12125 yan12125 closed this in edb99d4 Jun 7, 2015
yan12125 added a commit that referenced this issue Jun 7, 2015
This is a workaround. Currently YoutubeDL.process_info() truncates
info_dict['title'] to 200 characters, but the implementation can't
handle wide characters.
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 7, 2015

Thanks for the report. The user's videos will be downloaded correctly in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.