Skip to content

Commit

Permalink
Adapt video downloading to new format
Browse files Browse the repository at this point in the history
This should the video downloading issue reported at #18.
  • Loading branch information
aandergr committed Apr 20, 2017
1 parent c841bca commit 6b345e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instaloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def download_node(node: Dict[str, Any], session: requests.Session, name: str,
if node["is_video"] and download_videos:
video_data = get_json('p/' + node["code"], session, sleep=sleep)
download_pic(name,
video_data['entry_data']['PostPage'][0]['media']['video_url'],
video_data['entry_data']['PostPage'][0]['graphql']['shortcode_media']['video_url'],
node["date"], 'mp4', quiet=quiet)
if geotags:
location = get_location(node, session, sleep)
Expand Down

0 comments on commit 6b345e1

Please sign in to comment.