diff --git a/instagrapi/mixins/auth.py b/instagrapi/mixins/auth.py index 3e3ac9a8..b2bedabb 100644 --- a/instagrapi/mixins/auth.py +++ b/instagrapi/mixins/auth.py @@ -319,16 +319,14 @@ def login_by_sessionid(self, sessionid: str) -> bool: A boolean value """ assert isinstance(sessionid, str) and len(sessionid) > 30, "Invalid sessionid" - self.settings = {"cookies": {"sessionid": sessionid}} + self.settings["cookies"] = {"sessionid": sessionid} self.init() user_id = re.search(r"^\d+", sessionid).group() - self.authorization_data = { "ds_user_id": user_id, "sessionid": sessionid, "should_use_header_over_cookies": True } - try: user = self.user_info_v1(int(user_id)) except (PrivateError, ValidationError): diff --git a/setup.py b/setup.py index f02446ac..652ee632 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ setup( name='instagrapi', - version='1.16.13', + version='1.16.14', author='Mikhail Andreev', author_email='x11org@gmail.com', license='MIT',