Describe the bug
When I set the instance settings via dictionary in the set_settings() method, all parameters are assigned correctly except country. Instead, the default value from the module code is set to US.
**Traceback**
None
**Expected behavior**
I expect that all dictionary keys passed to `client.set_settings()` will be propagated to the session attributes.
**Screenshots**
None
**Desktop (please complete the following information):**
- OS: Ubuntu 21.04
- Python version 3.12.7
- instagrapi version 2.1.2
**Additional context**
Also `client.load_settings()` ignores the `country` dictionary key saved via `client.dump_settings()`
Describe the bug When I set the instance settings via dictionary in the
set_settings()
method, all parameters are assigned correctly exceptcountry
. Instead, the default value from the module code is set toUS
.To Reproduce
client = Client() config = { "country": "UK", "country_code": 1, "locale": "en_US", "timezone_offset": 3600 } client.set_settings(config)
set_country()
method it works{'uuids': {...}, 'mid': None, 'ig_u_rur': None, 'ig_www_claim': None, 'authorization_data': {}, 'cookies': {}, 'last_login': None, 'device_settings': {...}, 'user_agent': '...', 'country': 'UK', 'country_code': 1, 'locale': 'en_US', 'timezone_offset': 3600}