Skip to content

Commit

Permalink
Improves detection for Amazon devices
Browse files Browse the repository at this point in the history
ref #7513
  • Loading branch information
liviuconcioiu committed Nov 20, 2023
1 parent 2d41639 commit 0fdcbba
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tests/fixtures/tv-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6257,3 +6257,21 @@
model: 55CF630
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; Andr0id 9; AFTKAUK001) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.82 Safari/537.36 OPR/46.0.2207.0 OMI/4.24.1.52.AFTdev.551 HbbTV/1.5.1 (+DRM;Amazon;AFTKAUK001-AMZ-4K55N400D;0029159767172;unknown;com.amazon.m7632;) smarttv_AFTKAUK001-AMZ-4K55N400D_Build_0029159767172_Chromium_116.0.5845.82
os:
name: Fire OS
version: "7"
platform: ""
client:
type: browser
name: Opera Devices
version: 4.24.1.52
engine: Blink
engine_version: 116.0.5845.82
device:
type: tv
brand: Amazon
model: 4K55N400D
os_family: Android
browser_family: Opera
8 changes: 8 additions & 0 deletions regexes/device/televisions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ Altus:
device: 'tv'
model: ''

# Amazon
Amazon:
regex: 'Amazon.+AMZ'
device: 'tv'
models:
- regex: 'Amazon.+AMZ-([a-z0-9_ \-]+)_Build_'
model: '$1'

# AOC
AOC:
regex: 'AOC'
Expand Down

0 comments on commit 0fdcbba

Please sign in to comment.