From 12eb83f77323767178e443e759b9c41efa645ef7 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 17 May 2019 14:00:25 -0400 Subject: [PATCH] fix system name on android --- lbrynet/extras/system_info.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbrynet/extras/system_info.py b/lbrynet/extras/system_info.py index 8a9cb694b..d5b4897ab 100644 --- a/lbrynet/extras/system_info.py +++ b/lbrynet/extras/system_info.py @@ -8,12 +8,15 @@ log = logging.getLogger(__name__) def get_platform() -> dict: + os_system = platform.system() + if os.environ and 'ANDROID_ARGUMENT' in os.environ: + os_system = 'android' p = { "processor": platform.processor(), "python_version": platform.python_version(), "platform": platform.platform(), "os_release": platform.release(), - "os_system": platform.system(), + "os_system": os_system, "lbrynet_version": lbrynet_version, "build": build_type.BUILD, # CI server sets this during build step }