Skip to content

Commit

Permalink
feat(device) detect new brand Elista: B50UHD4EKC
Browse files Browse the repository at this point in the history
feat(device) detect new brand Horion: WEE5-75EU-FDVB
feat(device) detect new brand JVC: LT-98N7125
feat(device) detect new brand Aiwa: WS-508G

ref matomo-org#7885
  • Loading branch information
sanchezzzhak committed Dec 18, 2024
1 parent 86b70c0 commit feedc03
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'EL' => 'Elephone',
'JE' => 'Elekta',
'ELE' => 'Elevate',
'ELS' => 'Elista',
'4E' => 'Eltex',
'ELM' => 'Elong Mobile',
'ED' => 'Energizer',
Expand Down Expand Up @@ -793,6 +794,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'HM' => 'Homtom',
'HOP' => 'Hopeland',
'HZ' => 'Hoozo',
'HOR' => 'Horion',
'H7' => 'Horizon',
'4H' => 'Horizont',
'HO' => 'Hosin',
Expand Down
72 changes: 72 additions & 0 deletions Tests/fixtures/tv-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5880,3 +5880,75 @@
model: 32EVF5000S
os_family: Android
browser_family: Chrome
-
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; B50UHD4EKC; 04.41.33; 0x00000001; DTV_C22P); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, B50UHD4EKC, 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: Elista
model: B50UHD4EKC
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; WEE5-75EU-FDVB; 04.50.62; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, WEE5-75EU-FDVB, 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: Horion
model: WEE5-75EU-FDVB
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; LT-98N7125; 04.50.62; 0x00000001; DTV_C20P); webOS.TV-2020; LG NetCast.TV-2013 Compatible (LGE, LT-98N7125, 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: JVC
model: LT-98N7125
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; WS-508G; 04.41.33; 0x00000001; DTV_C22P); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, WS-508G, 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: Aiwa
model: WS-508G
os_family: Other Mobile
browser_family: Unknown
26 changes: 20 additions & 6 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2351,9 +2351,9 @@ Airpha:
- regex: 'Halo([34])[ _]Pro'
model: 'Halo$1 Pro'

# Aiwa (aiwa.mx eu-aiwa.com)
# Aiwa (aiwa.mx eu-aiwa.com, aiwa.com.sg)
Aiwa:
regex: '(?:AW790|M300(?! 4G)|AWM(?:53[39]|50[19]|561|999)|AW500|Android 7(?:[\d.]*);(?: [\w-]+;)? Z9 PLUS|JA2-SMP0601|AWTX6)(?:[);/ ]|$)'
regex: '(?:AW790|M300(?! 4G)|AWM(?:53[39]|50[19]|561|999)|AW500|Android 7(?:[\d.]*);(?: [\w-]+;)? Z9 PLUS|JA2-SMP0601|AWTX6|WS-508G)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: 'AW790(?:[);/ ]|$)'
Expand All @@ -2364,13 +2364,13 @@ Aiwa:
model: 'AW500'
- regex: 'AWM(53[39]|50[19]|561|999)(?:[);/ ]|$)'
model: 'AWM$1'
- regex: '(JA2-SMP0601)(?:[);/ ]|$)'
- regex: '(JA2-SMP0601)'
model: '$1'
- regex: 'M300(?:[);/ ]|$)'
model: 'M300'
device: 'phablet'
- regex: 'AWTX6'
model: 'AWTX6'
- regex: '(AWTX6|WS-508G)'
model: '$1'
device: 'tv'

# Akai
Expand Down Expand Up @@ -10380,7 +10380,7 @@ Qilive:

# JVC
JVC:
regex: 'JVC[;, ]|JVC-CVTE|AV-10NT310|(?:smarttv_)?(?:AFTSO001|AFTJULI1|AFTWMST22)'
regex: 'JVC[;, ]|JVC-CVTE|AV-10NT310|(?:smarttv_)?(?:AFTSO001|AFTJULI1|AFTWMST22|LT-98N7125)'
device: 'tv'
models:
- regex: 'JVC[;,](32D1290)'
Expand All @@ -10391,6 +10391,8 @@ JVC:
model: 'Fire TV 4K (2021)'
- regex: '(?:smarttv_)?AFTWMST22'
model: 'Fire TV 2K (2020)'
- regex: '(LT-98N7125)'
model: '$1'
- regex: 'JVC, ([a-z0-9_ -]+), (?:wired|wireless)'
model: ''
device: 'tv'
Expand Down Expand Up @@ -43016,6 +43018,18 @@ Everfine:
device: 'tv'
model: '$1'

# Elista (https://www.elistaworld.com)
Elista:
regex: '(B50UHD4EKC)(?:[);/ ]|$)'
device: 'tv'
model: '$1'

# Horion (https://global.horion.com)
Horion:
regex: '(WEE5-75EU-FDVB)(?:[);/ ]|$)'
device: 'tv'
model: '$1'

# Devices with undectable brand, but detectable model
Unknown:
regex: 'Plasma Mobile|WebTV/(\d+\.\d+)|TV Bro| BOX|BOX | BOX |roku|YouView|DirectFB|avdn/|wired|wireless|AndroidTV|cordova-amazon-fireos|wv-atv|SDSTB|SDOTT|(?:M10 Ultra|FO-R15|TVBOX|Smart[ _-]?TV|SmartATV|M8S\+ 4K|PCBox|rk(?:3128|322x|3368)(?:[_-]box)?|H10 PLAY|Smart AIO TV|TVBOX_L|L-BOX|TVBOX-5G|mips.+(?:Opera TV|wireless|wired)|smartbox|TV BOX|BOX TV|I12Pro Max|(?:audi_)?ks1280x480|AT&T TV|RealtekATV|AOSP on r33a0|tv001 on rtd289x|hx322x_box|X98_S500|8K3528-T|MX10|V88|H8S|X92|AI PONT|tv\.plus|WayDroid x86_64 Device|MediaBox|Cloud Phone|HK1RBOX-X4)(?:[);/ ]|$)'
Expand Down

0 comments on commit feedc03

Please sign in to comment.