Skip to content

Commit

Permalink
Improves version detection for webOS (matomo-org#7887)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu authored Nov 2, 2024
1 parent ff664bf commit 05c850c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
24 changes: 24 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5709,3 +5709,27 @@
family: Android
headers:
Sec-CH-UA-Platform: Android
-
user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 WebAppManager
os:
name: webOS
short_name: WOS
version: "22"
platform: ""
family: Other Mobile
-
user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.128 Safari/537.36 WebAppManager
os:
name: webOS
short_name: WOS
version: "23"
platform: ""
family: Other Mobile
-
user_agent: Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.211 Safari/537.36 WebAppManager
os:
name: webOS
short_name: WOS
version: "24"
platform: ""
family: Other Mobile
6 changes: 3 additions & 3 deletions Tests/fixtures/tv-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2365,7 +2365,7 @@
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"
version: "22"
platform: ""
client:
type: browser
Expand All @@ -2383,7 +2383,7 @@
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"
version: "22"
platform: ""
client:
type: browser
Expand All @@ -2401,7 +2401,7 @@
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"
version: "22"
platform: ""
client:
type: browser
Expand Down
6 changes: 6 additions & 0 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,12 @@
versions:
- regex: 'WEBOS(\d+[\.\d]+)'
version: '$1'
- regex: 'Web0S; Linux/SmartTV.+Chr[o0]me/108'
version: '24'
- regex: 'Web0S; Linux/SmartTV.+Chr[o0]me/94'
version: '23'
- regex: 'Web0S; Linux/SmartTV.+Chr[o0]me/87'
version: '22'
- regex: 'Web0S; Linux/SmartTV.+Chr[o0]me/79'
version: '6'
- regex: 'Web0S; Linux/SmartTV.+Chr[o0]me/68'
Expand Down

0 comments on commit 05c850c

Please sign in to comment.