instagrapi icon indicating copy to clipboard operation
instagrapi copied to clipboard

seperate tags for albums

Open alosoft opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently user tags are only applied to the first media in an album

Describe the solution you'd like It would be great if you could set different tags for each media in an album

alosoft avatar Jul 30 '21 01:07 alosoft

  1. Caption with hashtags
  2. Thumbnail
  3. Location
  4. Usertags

adw0rd avatar Aug 25 '21 07:08 adw0rd

The fix would be quite easy, the line that needs changing is the following: ([0] is the image number) https://github.com/adw0rd/instagrapi/blob/72f4456e8f1e7252f1dbd1ede4af3c868880698a/instagrapi/mixins/album.py#L257 I'd submit a pull request, however I'm not sure how to pass the parameter to the function to keep it downwards compatible.

Maybe allow a list of tuples to be passed like (usertag, image_number)? There would be 2 accepted parameter types then, a list of usertags and a list of tuples. Is this still okay with your style guide? @adw0rd https://github.com/adw0rd/instagrapi/blob/72f4456e8f1e7252f1dbd1ede4af3c868880698a/instagrapi/mixins/album.py#L116

salomom avatar Apr 08 '23 17:04 salomom