From d98ad257ac769da3fb18a4db737e7997f349afee Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Sun, 22 Dec 2024 10:46:46 +0100 Subject: [PATCH] Adds detection for multibox brand ref #7882 --- Parser/Device/AbstractDeviceParser.php | 1 + Tests/fixtures/tv-4.yml | 36 ++++++++++++++++++++++++++ regexes/device/mobiles.yml | 8 +++++- 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/Parser/Device/AbstractDeviceParser.php b/Parser/Device/AbstractDeviceParser.php index 4feaca6fa1..87a0e10836 100644 --- a/Parser/Device/AbstractDeviceParser.php +++ b/Parser/Device/AbstractDeviceParser.php @@ -1191,6 +1191,7 @@ abstract class AbstractDeviceParser extends AbstractParser '72' => 'M-Tech', '9H' => 'M-Horse', 'MKP' => 'M-KOPA', + 'MLB' => 'multibox', '1R' => 'Multilaser', 'MPS' => 'MultiPOS', '1M' => 'MYFON', diff --git a/Tests/fixtures/tv-4.yml b/Tests/fixtures/tv-4.yml index 192a758c23..be2fec607f 100644 --- a/Tests/fixtures/tv-4.yml +++ b/Tests/fixtures/tv-4.yml @@ -7158,3 +7158,39 @@ model: Allente 1 os_family: Android browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 10; Fundroid MB18 Build/QP1A.191105.004; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Safari/537.36 + os: + name: Android + version: "10" + platform: "" + client: + type: browser + name: Chrome Webview + version: 74.0.3729.186 + engine: Blink + engine_version: 74.0.3729.186 + device: + type: tv + brand: multibox + model: Fundroid MB18 + os_family: Android + browser_family: Chrome +- + user_agent: Mozilla/5.0 (Linux; Android 10; Fundroid MB216 Build/QP1A.191105.004; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Safari/537.36 + os: + name: Android + version: "10" + platform: "" + client: + type: browser + name: Chrome Webview + version: 74.0.3729.186 + engine: Blink + engine_version: 74.0.3729.186 + device: + type: tv + brand: multibox + model: Fundroid MB216 + os_family: Android + browser_family: Chrome diff --git a/regexes/device/mobiles.yml b/regexes/device/mobiles.yml index 9c7ee5cb30..89d9f482da 100644 --- a/regexes/device/mobiles.yml +++ b/regexes/device/mobiles.yml @@ -17890,7 +17890,7 @@ Torque: # motorola Motorola: - regex: 'MOT(?!TO)|(?