[instagram] strip query string from URL

This commit is contained in:
Mort Yao 2017-10-01 21:02:20 +02:00
parent db8f59c424
commit 9c237b2a44
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -5,6 +5,7 @@ __all__ = ['instagram_download']
from ..common import *
def instagram_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
url = r1(r'([^?]*)', url)
html = get_html(url)
vid = r1(r'instagram.com/p/([^/]+)', url)