Skip to content

Commit

Permalink
Adds detection for SuperTV brand
Browse files Browse the repository at this point in the history
ref #7967
  • Loading branch information
liviuconcioiu committed Jan 1, 2025
1 parent 02554f3 commit 1bdc165
Show file tree
Hide file tree
Showing 3 changed files with 47 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 @@ -1686,6 +1686,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'SGE' => 'Super General',
'SU' => 'SuperSonic',
'79' => 'SuperTab',
'STV' => 'SuperTV',
'S5' => 'Supra',
'SUP' => 'Supraim',
'ZS' => 'Suzuki',
Expand Down
36 changes: 36 additions & 0 deletions Tests/fixtures/tv-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7284,3 +7284,39 @@
model: V78
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.2; WHITE X Build/MHC19J; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/44.0.2403.119 Mobile Safari/537.36
os:
name: Android
version: 7.1.2
platform: ""
client:
type: browser
name: Chrome Webview
version: 44.0.2403.119
engine: Blink
engine_version: 44.0.2403.119
device:
type: tv
brand: SuperTV
model: White X
os_family: Android
browser_family: Chrome
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; BLACK X Build/NHG47L)
os:
name: Android
version: 7.1.2
platform: ""
client:
type: browser
name: Android Browser
version: ""
engine: WebKit
engine_version: ""
device:
type: tv
brand: SuperTV
model: Black X
os_family: Android
browser_family: Android Browser
10 changes: 10 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14028,6 +14028,16 @@ Just5:
- regex: 'BLASTER'
model: 'Blaster'

# SuperTV (https://supertvoficial.com.br/)
SuperTV:
regex: 'Android 7(?:[\d.]*); (?:BLACK|WHITE) X(?:[);/ ]|$)'
device: 'tv'
models:
- regex: 'BLACK X'
model: 'Black X'
- regex: 'WHITE X'
model: 'White X'

# Kalley (www.kalley.com.co)
Kalley:
regex: 'KALLEY|(?:ELEMENT (?:4 Plus|5|MAX|PLAY|Q)|ELEMENT_PRO_2|K-BOOK(?:8MG|73G)|SILVER_MAX(?:_Pro_2)?|Silver Max (?:Lite|Pro)|Black[ _][13CGXZ](?:_PRO)?|Black_G_2|BLACK_PRO|ATV R[12]|GOLD_PRO|KBOOK7M)(?:[);/ ]|$)'
Expand Down

0 comments on commit 1bdc165

Please sign in to comment.