Skip to content

Commit

Permalink
feat(device) detect new brand Viendo: V65G2
Browse files Browse the repository at this point in the history
feat(device) detect brand RCA Tablets: RWOSU6547
feat(device) detect brand Skytech: 50ST3204
feat(device) detect brand simfer: 43SFSW4M

ref matomo-org#7885
  • Loading branch information
sanchezzzhak committed Dec 18, 2024
1 parent b0b36a0 commit 43e5118
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 4 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1879,6 +1879,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'VD' => 'Videocon',
'VW' => 'Videoweb',
'VS' => 'ViewSonic',
'VIE' => 'Viendo',
'VIK' => 'VIKUSHA',
'V7' => 'Vinga',
'V3' => 'Vinsoc',
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 @@ -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
27 changes: 23 additions & 4 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down Expand Up @@ -15783,7 +15784,7 @@ Vargo:

# LG or LGE (lg.com)
LG:
regex: '(?<!TECNO Mobile |TECNO )LG(?!(?: Browser/8| NetCast\.TV| WebOS|E[;,]))|NetCast(?!\.TV)|WebAppManager|portalmmm/2\.0 (?:KE|KG|KP|L3)|(?:(?!VX20|VX19)VX[0-9]+|L-0[12]D|L-07C|P713|(LM-[A-Z][0-9]{3}[A-Z]{0,3}(?:\(FGN?\)|\(G\)|\.FN|\.F(?:GN?)?)?)|LM-(X625N1|G820QM[0127])|G Watch|lucye)(?:[);/ ]|$)|RS98[78]|RS500|VS(?:50[01]|835|876|880|98[05-8]|99[056]|(410|415|425|500|880)PP)|VS820|VS870 4G|Nexsus 5|10A30Q|LML(41[34]D|211B|713D|212V)L|VK810 4G|VK815|X5-LG|L-05[DE]|L-03K|L-01[LJK]|L-52A|L-[45]1A|901LG|A001LG|80[12]LG|402LG|LGT32|L-02K|L-01F|LM-V40|DM-01K|DM-02H|LMX130IM|LMG820UM1|VS810PP|VS425|VM670|VS930 4G|US215|LGE[;,] (?:[0-9]{2}[ELSTUP][ABCFGHJ-NP-TWX][a-z0-9]{4,7}(?:\-[a-z]{2})?|[0-9]{2}NANO[a-z0-9]+|OLED[0-9]{2}[a-z0-9-]+)|(?:27ART10AKPL|28MT49S-PSS|HF60LS-EU)(?:[);/ ]|$)'
regex: '(?<!TECNO Mobile |TECNO )LG(?!(?: Browser/8| NetCast\.TV| WebOS|E[;,]))|NetCast(?!\.TV)|WebAppManager|portalmmm/2\.0 (?:KE|KG|KP|L3)|(?:(?!VX20|VX19)VX[0-9]+|L-0[12]D|L-07C|P713|(LM-[A-Z][0-9]{3}[A-Z]{0,3}(?:\(FGN?\)|\(G\)|\.FN|\.F(?:GN?)?)?)|LM-(X625N1|G820QM[0127])|G Watch|lucye)(?:[);/ ]|$)|RS98[78]|RS500|VS(?:50[01]|835|876|880|98[05-8]|99[056]|(410|415|425|500|880)PP)|VS820|VS870 4G|Nexsus 5|10A30Q|LML(41[34]D|211B|713D|212V)L|VK810 4G|VK815|X5-LG|L-05[DE]|L-03K|L-01[LJK]|L-52A|L-[45]1A|901LG|A001LG|80[12]LG|402LG|LGT32|L-02K|L-01F|LM-V40|DM-01K|DM-02H|LMX130IM|LMG820UM1|VS810PP|VS425|VM670|VS930 4G|US215|LGE[;,] (?!50ST3204|43SFSW4M)(?:[0-9]{2}[ELSTUP][ABCFGHJ-NP-TWX][a-z0-9]{4,7}(?:\-[a-z]{2})?|[0-9]{2}NANO[a-z0-9]+|OLED[0-9]{2}[a-z0-9-]+)|(?:27ART10AKPL|28MT49S-PSS|HF60LS-EU)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: 'DM-(01K|02H)'
Expand Down Expand Up @@ -21689,9 +21690,9 @@ ProScan:
- regex: 'PLT(777[045]|9774|107[47]|9999)G'
model: 'PLT$1G'

# RCA Tablets (RCA) (https://www.rca.com/)
# RCA Tablets (RCA) (https://www.rca.com/ https://rca-televisions.com/)
RCA Tablets:
regex: 'RCA-OEM[;,]|RC[AT]([^;/]+)(?: Build|[;)]|$)|RCA RLTP4028|RLTP5567|RLTP5573|RC7T3G21|DRP(?:29101|2091)'
regex: 'RCA-OEM[;,]|RC[AT]([^;/]+)(?: Build|[;)]|$)|RWOSU6547|RCA RLTP4028|RLTP5567|RLTP5573|RC7T3G21|DRP(?:29101|2091)'
device: 'smartphone'
models:
- regex: 'RCARENO5011619'
Expand Down Expand Up @@ -21732,6 +21733,10 @@ RCA Tablets:
- regex: '(DRP29101|DRP2091)'
device: 'portable media player'
model: '$1'
# tv
- regex: '(RWOSU6547)'
device: 'tv'
model: '$1'
# general detections
- regex: 'RCT([^;/)]+)(?: Build|[;)])'
device: 'tablet'
Expand Down Expand Up @@ -41497,9 +41502,11 @@ SkyStream:

# Skytech (https://skytech.com.tr/)
Skytech:
regex: 'LGE; ST-[0-9a-z]+;'
regex: 'LGE; ST-[0-9a-z]+;|(?:50ST3204)(?:[);/ ]|$)'
device: 'tv'
models:
- regex: '(50ST3204)(?:[);/ ]|$)'
model: '$1'
- regex: 'LGE; (ST-[0-9a-z]+);'
model: '$1'

Expand Down Expand Up @@ -43056,6 +43063,18 @@ Weston:
device: 'tv'
model: '$1'

# Viendo
Viendo:
regex: '(V65G2)(?:[);/ ]|$)'
device: 'tv'
model: '$1'

# simfer (https://www.simfer.com.tr/)
simfer:
regex: '(43SFSW4M)(?:[);/ ]|$)'
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 43e5118

Please sign in to comment.