From cc5dd8f472bb7113d3fd6a52fbfde1375780d692 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Thu, 5 Dec 2024 02:55:19 +0100 Subject: [PATCH] Adds detection for UNITED brand ref #7885 --- Parser/Device/AbstractDeviceParser.php | 1 + Tests/fixtures/tv-5.yml | 18 ++++++++++++++++++ regexes/device/televisions.yml | 8 ++++++++ 3 files changed, 27 insertions(+) diff --git a/Parser/Device/AbstractDeviceParser.php b/Parser/Device/AbstractDeviceParser.php index 4aacf82a9a..635d850d79 100644 --- a/Parser/Device/AbstractDeviceParser.php +++ b/Parser/Device/AbstractDeviceParser.php @@ -1814,6 +1814,7 @@ abstract class AbstractDeviceParser extends AbstractParser 'UNI' => 'Unistrong', 'U2' => 'UNIWA', 'UND' => 'Uniden', + 'UNE' => 'UNITED', 'UGR' => 'United Group', 'UO' => 'Unnecto', 'UNN' => 'Unnion Technologies', diff --git a/Tests/fixtures/tv-5.yml b/Tests/fixtures/tv-5.yml index 391291aa96..c5a0d7a47d 100644 --- a/Tests/fixtures/tv-5.yml +++ b/Tests/fixtures/tv-5.yml @@ -35,3 +35,21 @@ model: Smart TV (2020) os_family: GNU/Linux browser_family: Opera +- + user_agent: Mozilla/5.0 (Linux ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36 OPR/46.0.2207.0 OMI/4.20.5.61.LIMA.183 Model/Vestel-MB181 VSTVB MB100 HbbTV/1.5.1 (+DRM; UNITED; MB181; 1.89.9.0; ; _TV_G36_2020;) SmartTvA/3.0.0 + os: + name: GNU/Linux + version: "" + platform: "" + client: + type: browser + name: Opera Devices + version: 4.20.5.61 + engine: Blink + engine_version: 77.0.3865.120 + device: + type: tv + brand: UNITED + model: Smart TV (2020) + os_family: GNU/Linux + browser_family: Opera diff --git a/regexes/device/televisions.yml b/regexes/device/televisions.yml index 76f88bb52a..4ca84663b9 100644 --- a/regexes/device/televisions.yml +++ b/regexes/device/televisions.yml @@ -1126,6 +1126,14 @@ Tsinghua Tongfang: - regex: 'LE40GY15' model: 'LE40GY15' +# UNITED (http://www.united-tv.eu/en/) +UNITED: + regex: 'UNITED[;,]' + device: 'tv' + models: + - regex: '_TV_[A-Z0-9]+_([0-9]{4});' + model: 'Smart TV ($1)' + # VANGUARD VANGUARD: regex: 'VANGUARD[;,]'