Skip to content

Commit

Permalink
Adds detection for alpsmart brand
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Dec 22, 2024
1 parent dcdb0d7 commit 6f5955a
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'A2' => 'Allview',
'ALI' => 'ALLINmobile',
'A7' => 'Allwinner',
'ALP' => 'alpsmart',
'A1' => 'Altech UEC',
'66' => 'Altice',
'ALM' => 'Altimo',
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 @@ -7032,3 +7032,75 @@
model: GR43200
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; AS512 Build/SP1A.211105.004; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Webview
version: 91.0.4472.114
engine: Blink
engine_version: 91.0.4472.114
device:
type: tv
brand: alpsmart
model: AS512
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; AS514 Build/SP1A.211105.004; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Webview
version: 91.0.4472.114
engine: Blink
engine_version: 91.0.4472.114
device:
type: tv
brand: alpsmart
model: AS514
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; AS515 Build/SP1A.211105.004; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Webview
version: 91.0.4472.114
engine: Blink
engine_version: 91.0.4472.114
device:
type: tv
brand: alpsmart
model: AS515
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 12; AS516 Build/SP1A.211105.004; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36
os:
name: Android
version: "12"
platform: ""
client:
type: browser
name: Chrome Webview
version: 91.0.4472.114
engine: Blink
engine_version: 91.0.4472.114
device:
type: tv
brand: alpsmart
model: AS516
os_family: Android
browser_family: Chrome
6 changes: 6 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3127,6 +3127,12 @@ Allwinner:
device: 'car browser'
model: 'QUAD-CORE R16'

# alpsmart (https://www.alpsmart.net/)
alpsmart:
regex: '(AS51[2456])(?:[);/ ]|$)'
device: 'tv'
model: '$1'

# altron
altron:
regex: '(AL-555|GI-626|OB[_-](?:421|588|728|627))(?:[);/ ]|$)'
Expand Down

0 comments on commit 6f5955a

Please sign in to comment.