From 43e51186588db28da822cc026039ff9d6120a5ab Mon Sep 17 00:00:00 2001 From: Alexsandr Tutik Date: Wed, 18 Dec 2024 14:09:13 +0300 Subject: [PATCH] feat(device) detect new brand Viendo: V65G2 feat(device) detect brand RCA Tablets: RWOSU6547 feat(device) detect brand Skytech: 50ST3204 feat(device) detect brand simfer: 43SFSW4M ref #7885 --- Parser/Device/AbstractDeviceParser.php | 1 + Tests/fixtures/tv-4.yml | 72 ++++++++++++++++++++++++++ regexes/device/mobiles.yml | 27 ++++++++-- 3 files changed, 96 insertions(+), 4 deletions(-) diff --git a/Parser/Device/AbstractDeviceParser.php b/Parser/Device/AbstractDeviceParser.php index c8e2538407..c8f5976edb 100644 --- a/Parser/Device/AbstractDeviceParser.php +++ b/Parser/Device/AbstractDeviceParser.php @@ -1879,6 +1879,7 @@ abstract class AbstractDeviceParser extends AbstractParser 'VD' => 'Videocon', 'VW' => 'Videoweb', 'VS' => 'ViewSonic', + 'VIE' => 'Viendo', 'VIK' => 'VIKUSHA', 'V7' => 'Vinga', 'V3' => 'Vinsoc', diff --git a/Tests/fixtures/tv-4.yml b/Tests/fixtures/tv-4.yml index 8a047067b0..f1ffee7658 100644 --- a/Tests/fixtures/tv-4.yml +++ b/Tests/fixtures/tv-4.yml @@ -6078,3 +6078,75 @@ model: 65WS3205 os_family: Other Mobile browser_family: Unknown +- + user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chr0me/87.0.4280.88 Safari/537.36 LG Browser/8.00.00(LGE; V65G2; 04.41.33; 0x00000001; DTV_C22P); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, V65G2, wireless) + os: + name: webOS + version: "22" + platform: "" + client: + type: browser + name: LG Browser + version: 8.00.00 + engine: Blink + engine_version: 87.0.4280.88 + device: + type: tv + brand: Viendo + model: V65G2 + os_family: Other Mobile + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chr0me/68.0.3440.106 Safari/537.36 LG Browser/8.00.00(LGE; RWOSU6547; 04.50.62; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, RWOSU6547, wireless) + os: + name: webOS + version: "5" + platform: "" + client: + type: browser + name: LG Browser + version: 8.00.00 + engine: Blink + engine_version: 68.0.3440.106 + device: + type: tv + brand: RCA Tablets + model: RWOSU6547 + os_family: Other Mobile + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chr0me/68.0.3440.106 Safari/537.36 LG Browser/8.00.00(LGE; 50ST3204; 04.50.62; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, 50ST3204, wired) + os: + name: webOS + version: "5" + platform: "" + client: + type: browser + name: LG Browser + version: 8.00.00 + engine: Blink + engine_version: 68.0.3440.106 + device: + type: tv + brand: Skytech + model: 50ST3204 + os_family: Other Mobile + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chr0me/87.0.4280.88 Safari/537.36 LG Browser/8.00.00(LGE; 43SFSW4M; 03.34.40; 0x00000001; DTV_C22L); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, 43SFSW4M, wireless) + os: + name: webOS + version: "22" + platform: "" + client: + type: browser + name: LG Browser + version: 8.00.00 + engine: Blink + engine_version: 87.0.4280.88 + device: + type: tv + brand: simfer + model: 43SFSW4M + os_family: Other Mobile + browser_family: Unknown diff --git a/regexes/device/mobiles.yml b/regexes/device/mobiles.yml index ed33fdb82e..2bbed9a0ad 100644 --- a/regexes/device/mobiles.yml +++ b/regexes/device/mobiles.yml @@ -9018,6 +9018,7 @@ EvroMedia: model: 'Play Pad 3G Tab XL' - regex: '3G NOTE XL' model: 'Play Pad 3G Note XL' + # EKO EKO: regex: 'EKO|Star (?:\d\.\d) (?:G65|G5[05]|G40)' @@ -15783,7 +15784,7 @@ Vargo: # LG or LGE (lg.com) LG: - regex: '(?