1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-11-05 01:42:29 +01:00

Adapt video downloading to new format

This should the video downloading issue reported at #18.
This commit is contained in:
Alexander Graf 2017-04-20 09:17:59 +02:00
parent c841bca81b
commit 6b345e1f52

View File

@ -487,7 +487,7 @@ def download_node(node: Dict[str, Any], session: requests.Session, name: str,
if node["is_video"] and download_videos: if node["is_video"] and download_videos:
video_data = get_json('p/' + node["code"], session, sleep=sleep) video_data = get_json('p/' + node["code"], session, sleep=sleep)
download_pic(name, 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) node["date"], 'mp4', quiet=quiet)
if geotags: if geotags:
location = get_location(node, session, sleep) location = get_location(node, session, sleep)