[instagram] fix vid extraction for Reels

This commit is contained in:
Mort Yao 2020-09-19 22:57:06 +02:00
parent eba44ed475
commit 4abc4bd7cf
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -8,7 +8,7 @@ def instagram_download(url, output_dir='.', merge=True, info_only=False, **kwarg
url = r1(r'([^?]*)', url)
html = get_html(url)
vid = r1(r'instagram.com/p/([^/]+)', url)
vid = r1(r'instagram.com/\w+/([^/]+)', url)
description = r1(r'<meta property="og:title" content="([^"]*)"', html)
title = "{} [{}]".format(description.replace("\n", " "), vid)
stream = r1(r'<meta property="og:video" content="([^"]*)"', html)