Skip to content

Commit

Permalink
Adds detection for X88 brand and device
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jul 13, 2022
1 parent 5ac9a9c commit dfa8abb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/tv-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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\)(?:[);/ ]|$)'
Expand Down

0 comments on commit dfa8abb

Please sign in to comment.