Skip to content

Commit

Permalink
[instagram] fix vid extraction for Reels
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Sep 19, 2020
1 parent eba44ed commit 4abc4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/you_get/extractors/instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4abc4bd

Please sign in to comment.