mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[instagram] fix vid extraction for Reels
This commit is contained in:
parent
eba44ed475
commit
4abc4bd7cf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user