Fix geopip lookup for IPv6 addresses

This commit is contained in:
JonnyWong16 2020-04-28 08:42:00 -07:00
commit 7ce9283421
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 2 additions and 4 deletions

View file

@ -933,7 +933,7 @@ class PlexTV(object):
return account_details
def get_geoip_lookup(self, ip_address=''):
if not ip_address or not helpers.is_public_ip(ip_address):
if not ip_address or not helpers.is_valid_ip(ip_address):
return
geoip_data = self.get_plextv_geoip(ip_address=ip_address, output_format='xml')