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 Epson EF-100 #7964

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 8 additions & 1 deletion DeviceDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,10 +1070,17 @@ protected function parseDevice(): void
/**
* All devices that contain Andr0id in string are assumed to be a tv
*/
if ($this->matchUserAgent('Andr0id|(?:Android(?: UHD)?|(?<!Xming )Google) TV|\(lite\) TV|BRAVIA| TV$')) {
if ($this->matchUserAgent('Andr0id|(?:Android(?: UHD)?|Google) TV|\(lite\) TV|BRAVIA| TV$')) {
$this->device = AbstractDeviceParser::DEVICE_TYPE_TV;
}

/**
* All devices that contain these fragments are assumed to be a peripheral
*/
if ($this->matchUserAgent('STI6110|Xming')) {
$this->device = AbstractDeviceParser::DEVICE_TYPE_PERIPHERAL;
}

liviuconcioiu marked this conversation as resolved.
Show resolved Hide resolved
/**
* All devices running Tizen TV or SmartTV are assumed to be a tv
*/
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/peripheral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1666,3 +1666,21 @@
model: Screeneo U5
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; STI6110 Build/QT; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 YaBrowser/24.10.0.358 (lite) TV Safari/537.36
os:
name: Android
version: "10"
platform: ""
client:
type: browser
name: Yandex Browser Lite
version: 24.10.0.358
engine: Blink
engine_version: 124.0.6367.123
device:
type: peripheral
brand: Epson
model: EF-100
os_family: Android
browser_family: Unknown
8 changes: 6 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38158,9 +38158,13 @@ Novex:

# Epson (epson.com)
Epson:
regex: 'Projector(?:[);/ ]|$)'
regex: '(?:Projector|STI6110)(?:[);/ ]|$)'
device: 'peripheral'
model: 'HA14A LCD Projector' # sti6200-d101
models:
- regex: 'Projector'
model: 'HA14A LCD Projector' # sti6200-d101
- regex: 'STI6110'
model: 'EF-100' # Askey

# Awow or AWOW (awowtech.com)
Awow:
Expand Down
Loading