Update disneyplus.py

This commit is contained in:
chu23465 2025-04-13 13:22:20 +05:30 committed by GitHub
parent 375320f0c4
commit 3b894cd31a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,9 +228,9 @@ class DisneyPlus(BaseService):
self.log.info("Getting BAMSDK Configuration")
ip_info = get_ip_info(self.session, fresh=True)
self.region = ip_info["country_code"].upper()
self.config["location_x"] = ip_info["latitude"]
self.config["location_y"] = ip_info["longitude"]
self.region = ip_info["countryCode"].upper()
self.config["location_x"] = ip_info["lat"]
self.config["location_y"] = ip_info["lon"]
self.log.info(f" + IP Location: {self.config['location_x']},{self.config['location_y']}")
self.bamsdk = BamSdk(self.config["bamsdk"]["config"], self.session)