From dfa8abb28033eeddc102b66abfce8a7993050cb8 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Wed, 13 Jul 2022 17:36:10 +0200 Subject: [PATCH] Adds detection for X88 brand and device --- Parser/Device/AbstractDeviceParser.php | 1 + Tests/fixtures/tv-1.yml | 18 ++++++++++++++++++ regexes/device/mobiles.yml | 6 ++++++ 3 files changed, 25 insertions(+) diff --git a/Parser/Device/AbstractDeviceParser.php b/Parser/Device/AbstractDeviceParser.php index 133d201714..2aad533aca 100644 --- a/Parser/Device/AbstractDeviceParser.php +++ b/Parser/Device/AbstractDeviceParser.php @@ -1368,6 +1368,7 @@ abstract class AbstractDeviceParser extends AbstractParser 'XT' => 'X-TIGI', 'XV' => 'X-View', 'X4' => 'X.Vision', + 'X88' => 'X88', 'XG' => 'Xgody', 'QX' => 'XGIMI', 'XL' => 'Xiaolajiao', diff --git a/Tests/fixtures/tv-1.yml b/Tests/fixtures/tv-1.yml index 5eb0f01521..f7af8a5dc7 100644 --- a/Tests/fixtures/tv-1.yml +++ b/Tests/fixtures/tv-1.yml @@ -6769,3 +6769,21 @@ model: TV Box os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 11; X88pro10.r1.00.6330.d4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36 + os: + name: Android + version: "11" + platform: "" + client: + type: browser + name: Chrome + version: 102.0.0.0 + engine: Blink + engine_version: 102.0.0.0 + device: + type: tv + brand: X88 + model: Pro 10 + os_family: Android + browser_family: Chrome diff --git a/regexes/device/mobiles.yml b/regexes/device/mobiles.yml index 20aef34d43..b47b2a12c6 100644 --- a/regexes/device/mobiles.yml +++ b/regexes/device/mobiles.yml @@ -26655,6 +26655,12 @@ X-BO: device: 'smartphone' model: '$1' +# X88 +X88: + regex: 'X88pro10' + device: 'tv' + model: 'Pro 10' + # Xgody Xgody: regex: 'XGODY|Y19\(EU\)(?:[);/ ]|$)'