Skip to content

Commit

Permalink
Adds detection for Novacom brand
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Dec 11, 2023
1 parent 51e9a43 commit cefdd62
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 @@ -1089,6 +1089,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'N5' => 'NOA',
'N1' => 'Noain',
'N6' => 'Nobby',
'NOC' => 'Novacom',
'NOV' => 'Novey',
'NO1' => 'NOVO',
'57' => 'Nubia',
Expand Down
36 changes: 36 additions & 0 deletions Tests/fixtures/tv-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6938,3 +6938,39 @@
model: Matador Pro Air
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; SPYBOXS11 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/119.0.6045.163 Safari/537.36/8.5.0 (Linux;Android 7.0) ExoPlayerLib/2.6.1
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Webview
version: 119.0.6045.163
engine: Blink
engine_version: 119.0.6045.163
device:
type: tv
brand: Novacom
model: Spy Box S11
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; SPYBOXS11_PLUS Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.91 Safari/537.36/8.5.0 (Linux;Android 7.0) ExoPlayerLib/2.6.1
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Webview
version: 51.0.2704.91
engine: Blink
engine_version: 51.0.2704.91
device:
type: tv
brand: Novacom
model: Spy Box S11 Plus
os_family: Android
browser_family: Chrome
10 changes: 10 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17030,6 +17030,16 @@ Nobby:
device: 'smartphone'
model: '$1'

# Novacom (https://www.novacom.com.tr/)
Novacom:
regex: 'SPYBOXS11'
device: 'tv'
models:
- regex: 'SPYBOXS11_PLUS(?:[);/ ]|$)'
model: 'Spy Box S11 Plus'
- regex: 'SPYBOXS11(?:[);/ ]|$)'
model: 'Spy Box S11'

# Novey (https://www.novey.com.pa/)
Novey:
regex: 'Novey'
Expand Down

0 comments on commit cefdd62

Please # to comment.