From ab7e559f3991e5912dcb3785e7f282ad75e2d278 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 15 Mar 2023 17:14:53 -0700 Subject: [PATCH] Limit platform version to 100 characters --- plexpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 781dbed7..2a769374 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -2859,7 +2859,7 @@ def analytics_event(name, **kwargs): event.set_event_param('branch', CONFIG.GIT_BRANCH) event.set_event_param('platform', common.PLATFORM) event.set_event_param('platformRelease', common.PLATFORM_RELEASE) - event.set_event_param('platformVersion', common.PLATFORM_VERSION.split(';', 1)[0] if common.PLATFORM == 'Darwin' else common.PLATFORM_VERSION) + event.set_event_param('platformVersion', common.PLATFORM_VERSION[:100]) event.set_event_param('linuxDistro', common.PLATFORM_LINUX_DISTRO) event.set_event_param('pythonVersion', common.PYTHON_VERSION) event.set_event_param('language', SYS_LANGUAGE)