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 Smart Tech brand and RTOS & Next os, and improves detection for Hisense, MediaTek, Next & NextStar #7941

Merged
merged 8 commits into from
Dec 13, 2024
2 changes: 1 addition & 1 deletion Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,6 @@ abstract class AbstractDeviceParser extends AbstractParser
'0M' => 'Mecool',
'MEM' => 'MeMobile',
'MC' => 'Mediacom',
'MK' => 'MediaTek',
'MD' => 'Medion',
'M2' => 'MEEG',
'MEG' => 'MEGA VISION',
Expand Down Expand Up @@ -1592,6 +1591,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'19' => 'Smailo',
'SR' => 'Smart Electronic',
'SMA' => 'Smart Kassel',
'STE' => 'Smart Tech',
'49' => 'Smart',
'47' => 'SmartBook',
'3B' => 'Smartab',
Expand Down
3 changes: 2 additions & 1 deletion Parser/OperatingSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ class OperatingSystem extends AbstractParser
'RRS' => 'Resurrection Remix OS',
'REX' => 'REX',
'RZD' => 'RazoDroiD',
'RXT' => 'RTOS & Next',
'SAB' => 'Sabayon',
'SSE' => 'SUSE',
'SAF' => 'Sailfish OS',
Expand Down Expand Up @@ -262,7 +263,7 @@ class OperatingSystem extends AbstractParser
'Mac' => ['MAC'],
'Mobile Gaming Console' => ['PSP', 'NDS', 'XBX'],
'OpenVMS' => ['OVS'],
'Real-time OS' => ['MTK', 'TDX', 'MRE', 'JME', 'REX'],
'Real-time OS' => ['MTK', 'TDX', 'MRE', 'JME', 'REX', 'RXT'],
'Other Mobile' => ['WOS', 'POS', 'SBA', 'TIZ', 'SMG', 'MAE', 'LUN', 'GEO'],
'Symbian' => ['SYM', 'SYS', 'SY3', 'S60', 'S40'],
'Unix' => [
Expand Down
8 changes: 8 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5805,6 +5805,14 @@
version: "2"
platform: x64
family: GNU/Linux
-
user_agent: NEXT 64_VLC/3.0.14 LibVLC/3.0.14
os:
name: 'RTOS & Next'
short_name: RXT
version: ""
platform: ""
family: Real-time OS
-
user_agent: 14/tclwebkit1.0.2
os:
Expand Down
80 changes: 80 additions & 0 deletions Tests/fixtures/mediaplayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,83 @@
model: ""
os_family: Windows
browser_family: Unknown
-
user_agent: NEXT 2000 HD FTA_VLC/3.0.14 LibVLC/3.0.14
os:
name: 'RTOS & Next'
version: ""
platform: ""
client:
type: mediaplayer
name: VLC
version: 3.0.14
device:
type: tv
brand: 'Next & NextStar'
model: 2000 HD FTA
os_family: Real-time OS
browser_family: Unknown
-
user_agent: NEXT 2000-HD_VLC/3.0.14 LibVLC/3.0.14
os:
name: 'RTOS & Next'
version: ""
platform: ""
client:
type: mediaplayer
name: VLC
version: 3.0.14
device:
type: tv
brand: 'Next & NextStar'
model: 2000 HD
os_family: Real-time OS
browser_family: Unknown
-
user_agent: NEXT 64_VLC/3.0.14 LibVLC/3.0.14
os:
name: 'RTOS & Next'
version: ""
platform: ""
client:
type: mediaplayer
name: VLC
version: 3.0.14
device:
type: tv
brand: 'Next & NextStar'
model: "64"
os_family: Real-time OS
browser_family: Unknown
-
user_agent: NEXT YE-2000HD CX_VLC/3.0.14 LibVLC/3.0.14
os:
name: 'RTOS & Next'
version: ""
platform: ""
client:
type: mediaplayer
name: VLC
version: 3.0.14
device:
type: tv
brand: 'Next & NextStar'
model: YE-2000HD CX
os_family: Real-time OS
browser_family: Unknown
-
user_agent: NEXT YE-2000 USB_VLC/3.0.14 LibVLC/3.0.14
os:
name: 'RTOS & Next'
version: ""
platform: ""
client:
type: mediaplayer
name: VLC
version: 3.0.14
device:
type: tv
brand: 'Next & NextStar'
model: YE-2000 USB
os_family: Real-time OS
browser_family: Unknown
21 changes: 15 additions & 6 deletions Tests/fixtures/tv-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6631,7 +6631,10 @@
browser_family: Opera
-
user_agent: NEXT 2000-HD PLUS_VLC/3.0.14 LibVLC/3.0.14
os: [ ]
os:
name: 'RTOS & Next'
version: ""
platform: ""
client:
type: mediaplayer
name: VLC
Expand All @@ -6640,11 +6643,14 @@
type: tv
brand: 'Next & NextStar'
model: 2000 HD Plus
os_family: Unknown
os_family: Real-time OS
browser_family: Unknown
-
user_agent: NEXT 2000 WiFi_VLC/3.0.14 LibVLC/3.0.14
os: [ ]
os:
name: 'RTOS & Next'
version: ""
platform: ""
client:
type: mediaplayer
name: VLC
Expand All @@ -6653,11 +6659,14 @@
type: tv
brand: 'Next & NextStar'
model: 2000 WiFi
os_family: Unknown
os_family: Real-time OS
browser_family: Unknown
-
user_agent: NEXT 2071_VLC/3.0.14 LibVLC/3.0.14
os: [ ]
os:
name: 'RTOS & Next'
version: ""
platform: ""
client:
type: mediaplayer
name: VLC
Expand All @@ -6666,7 +6675,7 @@
type: tv
brand: 'Next & NextStar'
model: "2071"
os_family: Unknown
os_family: Real-time OS
browser_family: Unknown
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 11; Nokia Streaming Stick 800 Build/RTT0.210618.003)
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 @@ -4989,3 +4989,39 @@
model: CT-8750
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Odin/100.4896.4.10 Safari/537.36 Model/VIDAA-NT72690 VIDAA/7.0(Smarttech;SmartTV;VS0343FE2;NT72690/V0000.07.00C.O0629;FHD;VS0343F2;)
os:
name: VIDAA
version: "7.0"
platform: ARM
client:
type: browser
name: Odin
version: 100.4896.4.10
engine: Blink
engine_version: 100.0.4896.127
device:
type: tv
brand: Smart Tech
model: ""
os_family: GNU/Linux
browser_family: Chrome
-
user_agent: Mozilla/5.0 (X11; Linux x86_64;) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 SRAF/4.0 (; Hisense; SmartTV_2019_1; V0000.01.00a.N0423; MICALIDVB6886; ); CE-HTML/1.0 hbbtv
os:
name: GNU/Linux
version: ""
platform: x64
client:
type: browser
name: Seraphic Sraf
version: "4.0"
engine: Blink
engine_version: 47.0.2526.106
device:
type: tv
brand: Hisense
model: Smart TV (2019)
os_family: GNU/Linux
browser_family: Chrome
26 changes: 4 additions & 22 deletions Tests/fixtures/tv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3307,26 +3307,8 @@
engine_version: ""
device:
type: tv
brand: MediaTek
model: MT5396
os_family: Real-time OS
browser_family: Unknown
-
user_agent: HbbTV/1.2.1 (;MTK;MT5396;;;) ANTGalio/3.3.0.26.02.devel
os:
name: MTK / Nucleus
version: ""
platform: ""
client:
type: browser
name: ANTGalio
version: 3.3.0.26.02
engine: ""
engine_version: ""
device:
type: tv
brand: MediaTek
model: MT5396
brand: ""
model: ""
os_family: Real-time OS
browser_family: Unknown
-
Expand Down Expand Up @@ -9222,8 +9204,8 @@
engine_version: 55.0.2883.91
device:
type: tv
brand: MediaTek
model: MT5887
brand: ""
model: Smart TV (2019)
os_family: GNU/Linux
browser_family: Chrome
-
Expand Down
19 changes: 19 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35458,6 +35458,12 @@ Smart Kassel:
- regex: 'SK5501(?:[);/ ]|$)'
model: 'SK5501'

# Smart Tech (https://www.smarttech-tv.com/)
Smart Tech:
regex: 'Smarttech[;,]'
device: 'tv'
model: ''

# Colors or ColorsMobile (www.colors-mobile.com)
Colors:
regex: '(?:Colors[ _](S(?:[19]|11)|P70|P[456]5|P32|E15|P50 Plus)|Pride_1A|P52_Pride5C|P90_Pride5X|P95_Pride_7s|P77_Pride_1E|P88_Pride_1X)(?:[);/ ]|$)'
Expand Down Expand Up @@ -40067,10 +40073,20 @@ Next & NextStar:
models:
- regex: '2000 WiFi'
model: '2000 WiFi'
- regex: '2000 HD FTA'
model: '2000 HD FTA'
- regex: '2000-HD PLUS'
model: '2000 HD Plus'
- regex: '2000-HD'
model: '2000 HD'
- regex: 'NEXT 64'
model: '64'
- regex: '2071'
model: '2071'
- regex: 'YE-2000HD CX'
model: 'YE-2000HD CX'
- regex: 'YE-2000 USB'
model: 'YE-2000 USB'
- regex: 'MyBox(?:[);/ ]|$)'
model: 'MyBox'
- regex: 'LGE; (YE-[0-9a-z]+)-4K;'
Expand Down Expand Up @@ -41974,6 +41990,9 @@ Hisense:
- regex: 'Hisense;SmartTV;([a-z0-9_ -]+);'
device: 'tv'
model: '$1'
- regex: 'Hisense; ?SmartTV_([0-9]{4})_1;'
device: 'tv'
model: 'Smart TV ($1)'
- regex: '(HE43A6500UWTS)'
device: 'tv'
model: '$1'
Expand Down
13 changes: 3 additions & 10 deletions regexes/device/televisions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -656,14 +656,6 @@ Manhattan:
- regex: 'T3'
model: 'T3'

# MediaTek
MediaTek:
regex: 'MTK|MediaTek;'
device: 'tv'
models:
- regex: '(MT[0-9]{4})'
model: '$1'

# Medion
Medion:
regex: 'Medion'
Expand Down Expand Up @@ -1220,8 +1212,9 @@ Xiaomi:

# Unknown
Unknown:
regex: 'OEM, ([a-z0-9_ -]+), (?:wired|wireless)|_TV_[A-Z0-9]+_([0-9]{4});'
device: 'tv'
regex: 'OEM, ([a-z0-9_ -]+), (?:wired|wireless)|_TV_[A-Z0-9]+_([0-9]{4});|LaTivu_(?:\d+[.\d]+)_([0-9]{4})'
models:
- regex: '_TV_[A-Z0-9]+_([0-9]{4});'
model: 'Smart TV ($1)'
- regex: 'LaTivu_(?:\d+[.\d]+)_([0-9]{4})'
model: 'Smart TV ($1)'
7 changes: 7 additions & 0 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later
###############

##########
# RTOS & Next
##########
- regex: '^NEXT '
name: 'RTOS & Next'
version: ''

##########
# Meta Horizon (https://developers.meta.com/horizon)
##########
Expand Down
Loading