InstaLooter icon indicating copy to clipboard operation
InstaLooter copied to clipboard

media_count parameter doesn't work on PostLooter.download

Open sp1thas opened this issue 5 years ago • 0 comments

Library version

instalooter 2.3.4

Environment

  • Ubuntu 18.04
  • Python 3.6.6

Error description - runtime

I would like to download only a single image from a post with multiple images. I used the media_count parameter from the corresponding method but it doesn't work. I still get all images from the given post.

Reproducible test case

from instalooter.looters import PostLooter
looter = PostLooter(
  'BwKSVVVArhP',
  get_videos=True,
  jobs=1,
  template="{code}_{id}",
)
looter.download(media_count=1, destination='.')

Expected behaviour

Download a single image from given post

Actual behaviour

Download all images from given post

sp1thas avatar Apr 24 '19 11:04 sp1thas