Skip to content

Commit

Permalink
Improves detection for LG devices
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Nov 1, 2024
1 parent f2e4904 commit 0576063
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 2 deletions.
72 changes: 72 additions & 0 deletions Tests/fixtures/tv-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3981,3 +3981,75 @@
model: 28TN525S-PZ
os_family: Other Mobile
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chr0me/108.0.5359.211 Safari/537.36 LG Browser/8.00.00(LGE; 55NANO81T6A.BPISLJP; 23.20.65; 0x00000001; DTV_W24P); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, 55NANO81T6A.BPISLJP, wireless)
os:
name: webOS
version: "1"
platform: ""
client:
type: browser
name: LG Browser
version: 8.00.00
engine: Blink
engine_version: 108.0.5359.211
device:
type: tv
brand: LG
model: 55NANO81T6A
os_family: Other Mobile
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chr0me/108.0.5359.211 Safari/537.36 LG Browser/8.00.00(LGE; 50NANO81T6A; 23.20.65; 0x00000001; DTV_W24P); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, 50NANO81T6A, wireless)
os:
name: webOS
version: "1"
platform: ""
client:
type: browser
name: LG Browser
version: 8.00.00
engine: Blink
engine_version: 108.0.5359.211
device:
type: tv
brand: LG
model: 50NANO81T6A
os_family: Other Mobile
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chr0me/108.0.5359.211 Safari/537.36 LG Browser/8.00.00(LGE; OLED48C34LA; 23.20.50; 0x00000001; DTV_W23O); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, OLED48C34LA, wired)
os:
name: webOS
version: "1"
platform: ""
client:
type: browser
name: LG Browser
version: 8.00.00
engine: Blink
engine_version: 108.0.5359.211
device:
type: tv
brand: LG
model: OLED48C34LA
os_family: Other Mobile
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chr0me/108.0.5359.211 Safari/537.36 LG Browser/8.00.00(LGE; OLED55B42LA.DVSQLJP; 23.20.21; 0x00000001; DTV_W24H); webOS.TV-2022; LG NetCast.TV-2013 Compatible (LGE, OLED55B42LA.DVSQLJP, wireless)
os:
name: webOS
version: "1"
platform: ""
client:
type: browser
name: LG Browser
version: 8.00.00
engine: Blink
engine_version: 108.0.5359.211
device:
type: tv
brand: LG
model: OLED55B42LA.DVSQLJP
os_family: Other Mobile
browser_family: Unknown
4 changes: 2 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15676,7 +15676,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[;,] (?:2[478]|32|4[39]|5[05]|6[05])(?:L[HJKMQX]|S[JKM]|T[NL]|U[HJKMNPQRT])[a-z0-9]{4,7}(?:\-[a-z]{2})?'
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[;,] (?:(?:2[478]|32|4[39]|5[05]|6[05])(?:L[HJKMQX]|S[JKM]|T[NL]|U[HJKMNPQRT])[a-z0-9]{4,7}(?:\-[a-z]{2})?|5[05]NANO[a-z0-9]+|OLED(?:48|55)[a-z0-9]+)'
device: 'smartphone'
models:
- regex: 'DM-(01K|02H)'
Expand Down Expand Up @@ -16332,7 +16332,7 @@ LG:
- regex: 'LGE;? (?:HOTEL\-TV; )?([0-9]{2}[a-z0-9]{4,9}(?:\-[a-z]{2,3})?)'
model: '$1'
device: 'tv'
- regex: '\(LGE?,? ([a-z0-9_ \-]+),? (?:wired|wireless)'
- regex: '\(LGE?,? ([a-z0-9_ \-\.]+),? (?:wired|wireless)'
model: '$1'
device: 'tv'
- regex: 'Media/([a-z]{2,3}[0-9]{3,4})'
Expand Down

0 comments on commit 0576063

Please sign in to comment.