Skip to content

Commit

Permalink
Update tv detection (#167)
Browse files Browse the repository at this point in the history
Adds detection for OWLer and BBC bots, improves version detection for iOS and macOS (matomo-org#7546)
* Improves version detection for iOS and macOS
* Adds detection for OWLer
* Adds detection for BBC bots

Adds detection for AYA, Botech, Continental Edison, EAS Electric, Edenwood, Fobem, Hanseatic, Hiremco, HKC, Kydos, Logik, Mitchell & Brown, NEVIR, Next & NextStar, Novacom, Skytech brands and improves detection for various brands (matomo-org#7533)

Adds detection for Altimo, AmazonBasics, Atlantic Electrics, Black Box, Canal+, Cecotec, DIORA, Dinalink, Elektroland, FITCO, Filimo, Graetz, HOFER, Homatics, Kendo, Maxwell, MEGA VISION, MEO, NABO, NetBox, OCEANIC, Orava, Play Now, PROSONIC, Sagemcom, SEHMAX, Silva Schneider, Solas, Super General, TADAAM, TAUBE, VANGUARD, Walker, We. by Loewe., WONDER brands. improves detection for other brands, improves version detection for Fire OS (matomo-org#7540)

Adds detection for Express LUCK, Ooredoo, Tsinghua Tongfang, XGEM brands, Nuanti Meta browser, DIGA, YouView mediaplayers and improves detection for various brands (matomo-org#7542)

* chore: update tv clients
* chore: added package-lock.json to git ignore
* chore: remove node 10.x for chai.yml
* chore: generate device indexes and client indexes
* fix: mapping version for FireOS

---------

Co-authored-by: Alexsandr Tutik <[email protected]>
  • Loading branch information
sanchezzzhak and sanchezzzhak authored Dec 26, 2023
1 parent 29bd429 commit 48d07ac
Show file tree
Hide file tree
Showing 72 changed files with 26,776 additions and 25,263 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/chai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 10.x, 15.x, 16.x, 18.x]
node-version: [15.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
4,554 changes: 962 additions & 3,592 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions parser/client/browser-short.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ module.exports = {
'NS': 'Netscape',
'WR': 'NextWord Browser',
'NT': 'NTENT Browser',
'NU': 'Nuanti Meta',
'OC': 'Oculus Browser',
'O6': 'Odd Browser',
'O1': 'Opera Mini iOS',
Expand Down
5 changes: 4 additions & 1 deletion parser/const/clients-tv.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// eslint-disable-next-line no-undef
module.exports = [
'Kylo',
'Espial TV Browser',
'LUJO TV Browser',
'LogicUI TV Browser',
'Open TV Browser'
'Open TV Browser',
'Seraphic Sraf',
'Opera Devices',
];
2 changes: 1 addition & 1 deletion parser/device-abstract-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const COLLECTION_BRAND_IDS = require('./device/brand-short');
const COLLECTION_BRAND_LIST = helper.revertObject(COLLECTION_BRAND_IDS);

const DESKTOP_PATTERN = '(?:Windows (?:NT|IoT)|X11; Linux x86_64)';
const DESKTOP_EXCLUDE_PATTERN = ' Mozilla/|Andr[o0]id|Tablet|Mobile|iPhone|Windows Phone|OculusBrowser|ricoh|Lenovo|compatible; MSIE|Trident/|Tesla/|XBOX|FBMD/|ARM; ?([^)]+)';
const DESKTOP_EXCLUDE_PATTERN = ' Mozilla/|CE-HTML|Andr[o0]id|Tablet|Mobile|iPhone|Windows Phone|OculusBrowser|ricoh|Lenovo|compatible; MSIE|Trident/|Tesla/|XBOX|FBMD/|ARM; ?([^)]+)';

class DeviceParserAbstract extends ParserAbstract {
constructor() {
Expand Down
Loading

0 comments on commit 48d07ac

Please sign in to comment.