Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds detection for SuperTV brand #7969

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading