added ternary condition on instagram extractor

This commit is contained in:
Alexsander Falcucci 2015-10-29 01:15:05 -02:00
parent d68ed95c20
commit cba9588da3

View File

@ -20,8 +20,9 @@ def instagram_download(url, output_dir='.', merge=True, info_only=False, **kwarg
_, _, size = url_info(image)
print_info(site_info, title, ext, size)
url = stream if stream else image
if not info_only:
download_urls([image], title, ext, size, output_dir, merge=merge)
download_urls([url], title, ext, size, output_dir, merge=merge)
site_info = "Instagram.com"
download = instagram_download