Skip to content

Commit

Permalink
Adds detection for GVC Pro brand, improves detection for various bran…
Browse files Browse the repository at this point in the history
…ds and Blink engine (#7809)

* Improves detection for Blink engine
* Improve LG regex
* Improves detection for Akai devices
* Improves detection for unknown brands
* Improves detection for AWOX devices
* Improves detection for DIJITSU devices
* Adds detection for GVC Pro brand
* Improves detection for Vision Technology devices
* Improves detection for Stream devices
* Improves detection for Skytech devices
* Improves detection for WANSA devices
* Improves detection for Sunny devices
* Add website for MESWAO
* Improves detection for Next & NextStar devices
  • Loading branch information
liviuconcioiu authored Sep 5, 2024
1 parent b2a970e commit 5585c61
Show file tree
Hide file tree
Showing 7 changed files with 370 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Parser/Client/Browser/Engine/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function parse(): ?array
$engineToken = $this->engine;

if ('Blink' === $this->engine) {
$engineToken = 'Chrome|Cronet';
$engineToken = 'Chr[o0]me|Cronet';
}

if ('Arachne' === $this->engine) {
Expand Down
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'GU' => 'Grundig',
'GV' => 'Gtel',
'CUO' => 'Guophone',
'GVC' => 'GVC Pro',
'H13' => 'H133',
'9Z' => 'H96',
'HF' => 'Hafury',
Expand Down
4 changes: 2 additions & 2 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4280,8 +4280,8 @@
type: browser
name: LG Browser
version: 8.00.00
engine: WebKit
engine_version: "537.36"
engine: Blink
engine_version: 38.0.2125.122
family: ""
-
user_agent: Mozilla/4.0 (compatible; MSIE 6.0; Nokia7650) ReqwirelessWeb/2.0.0.0
Expand Down
4 changes: 2 additions & 2 deletions Tests/fixtures/tv-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4609,8 +4609,8 @@
type: browser
name: LG Browser
version: 8.00.00
engine: WebKit
engine_version: "537.36"
engine: Blink
engine_version: 38.0.2125.122
device:
type: tv
brand: LG
Expand Down
306 changes: 306 additions & 0 deletions Tests/fixtures/tv-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2307,3 +2307,309 @@
model: YNDX-00075
os_family: Android
browser_family: Chrome
-
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; AK50KA315; 04.50.61; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, AK50KA315, 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: Akai
model: AK50KA315
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; ALT42SMF; 04.50.61; 0x00000001; DTV_C20L); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, ALT42SMF, 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: Akai
model: ALT42SMF
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; B213900SW; 04.50.62; 0x00000001; DTV_C20L); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, B213900SW, 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: AWOX
model: B213900SW
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; 50DW9900; 04.41.32; 0x00000001; DTV_C22P); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, 50DW9900, wireless)
os:
name: webOS
version: "1"
platform: ""
client:
type: browser
name: LG Browser
version: 8.00.00
engine: Blink
engine_version: 87.0.4280.88
device:
type: tv
brand: DIJITSU
model: 50DW9900
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; 58DW9900; 04.41.32; 0x00000001; DTV_C22P); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, 58DW9900, wireless)
os:
name: webOS
version: "1"
platform: ""
client:
type: browser
name: LG Browser
version: 8.00.00
engine: Blink
engine_version: 87.0.4280.88
device:
type: tv
brand: DIJITSU
model: 58DW9900
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; 50GW6100; 04.41.32; 0x00000001; DTV_C22P); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, 50GW6100, wireless)
os:
name: webOS
version: "1"
platform: ""
client:
type: browser
name: LG Browser
version: 8.00.00
engine: Blink
engine_version: 87.0.4280.88
device:
type: tv
brand: GVC Pro
model: 50GW6100
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; VS-55LDB971WO; 04.50.61; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, VS-55LDB971WO, 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: Vision Technology
model: VS-55LDB971WO
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; WSTRF4022FTP; 04.50.61; 0x00000001; DTV_C20L); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, WSTRF4022FTP, 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: Stream
model: WSTRF4022FTP
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; WSTRH3222FTP; 04.50.62; 0x00000001; DTV_C20L); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, WSTRH3222FTP, 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: Stream
model: WSTRH3222FTP
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; WSTRU4322FTP; 04.50.61; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, WSTRU4322FTP, 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: Stream
model: WSTRU4322FTP
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; WSTRU5522FTP; 04.50.61; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, WSTRU5522FTP, 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: Stream
model: WSTRU5522FTP
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; ST-5090; 04.50.62; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, ST-5090, 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: Skytech
model: ST-5090
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; WLE32KWO62; 04.50.61; 0x00000001; DTV_C20L); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, WLE32KWO62, 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: WANSA
model: WLE32KWO62
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; SN50FMN242-0246; 04.50.61; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, SN50FMN242-0246, 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: Sunny
model: SN50FMN242
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; SN55FMN243-0246; 04.50.62; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, SN55FMN243-0246, 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: Sunny
model: SN55FMN243
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; SNY55WOS; 04.50.61; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, SNY55WOS, 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: Sunny
model: SNY55WOS
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; YE-65020FS2-4K; 04.50.62; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, YE-65020FS2-4K, 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: 'Next & NextStar'
model: YE-65020FS2 4K
os_family: Other Mobile
browser_family: Unknown
2 changes: 1 addition & 1 deletion regexes/client/browser_engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- regex: 'Trident'
name: 'Trident'

- regex: 'Chrome/(?!1?\d\.|2[0-7]\.)'
- regex: 'Chr[o0]me/(?!1?\d\.|2[0-7]\.)'
name: 'Blink'

- regex: '(?:Apple)?WebKit'
Expand Down
Loading

0 comments on commit 5585c61

Please sign in to comment.