instaloader / instaloader

Download pictures (or videos) along with their captions and other metadata from Instagram.

Home Page:https://instaloader.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not download stories when --load-cookies is passed

ekalin opened this issue · comments

Describe the bug
When --load-cookies is passed, stories are not downloaded, even if the loaded cookies provided a valid session (and the user is considered logged in).

To Reproduce
Steps to reproduce the behavior:
Log in using a browser

instaloder --stories --load-cookies firefox taylorswift

Expected behavior
Posts and stories should be downloaded.

Error messages and tracebacks
No error is reported, and posts are downloaded, but there's a warning at the start:

--login=USERNAME required to download stories.

Instaloader version
Using upcoming/4.12 branch.

Additional context
--load-cookies is an anternative to --login, so it should be considered when checking if stories are downloaded.
There might be other places where a similar problem happens.

I looked at the code and it seems that the only place where --load-cookies is not considered a login is for stories.