From 6b345e1f52af3e61e2a998d2ed085c626a04404d Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 20 Apr 2017 09:17:59 +0200 Subject: [PATCH] Adapt video downloading to new format This should the video downloading issue reported at #18. --- instaloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader.py b/instaloader.py index 2acaa8b..f492b50 100755 --- a/instaloader.py +++ b/instaloader.py @@ -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)