From 84090310f7fae846cac06fac2ffaae9335b53527 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 25 May 2016 18:53:40 -0700 Subject: [PATCH] Extract mapped IPv4 address from Plexivity import --- plexpy/plexivity_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/plexivity_import.py b/plexpy/plexivity_import.py index 879736e3..1b2af51c 100644 --- a/plexpy/plexivity_import.py +++ b/plexpy/plexivity_import.py @@ -108,7 +108,7 @@ def extract_plexivity_xml(xml=None): if a.getElementsByTagName('Player'): player_elem = a.getElementsByTagName('Player') for d in player_elem: - ip_address = helpers.get_xml_attr(d, 'address') + ip_address = helpers.get_xml_attr(d, 'address').split('::ffff:')[-1] machine_id = helpers.get_xml_attr(d, 'machineIdentifier') platform = helpers.get_xml_attr(d, 'platform') player = helpers.get_xml_attr(d, 'title')