mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
added ternary condition on instagram extractor
This commit is contained in:
parent
d68ed95c20
commit
cba9588da3
@ -20,8 +20,9 @@ def instagram_download(url, output_dir='.', merge=True, info_only=False, **kwarg
|
|||||||
_, _, size = url_info(image)
|
_, _, size = url_info(image)
|
||||||
|
|
||||||
print_info(site_info, title, ext, size)
|
print_info(site_info, title, ext, size)
|
||||||
|
url = stream if stream else image
|
||||||
if not info_only:
|
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"
|
site_info = "Instagram.com"
|
||||||
download = instagram_download
|
download = instagram_download
|
||||||
|
Loading…
Reference in New Issue
Block a user