Skip to content

Commit

Permalink
Adds detection for Grünberg brand
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Dec 22, 2024
1 parent fbd5f4f commit dcdb0d7
Show file tree
Hide file tree
Showing 3 changed files with 43 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 @@ -737,6 +737,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'GR1' => 'GroBerwert',
'GF' => 'Gretel',
'82' => 'Gresso',
'GRB' => 'Grünberg',
'GU' => 'Grundig',
'GV' => 'Gtel',
'CUO' => 'Guophone',
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 @@ -6996,3 +6996,39 @@
model: 24HEY1
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 13; GR32200 Build/TP1A.220905.004.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/101.0.4951.61 Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Webview
version: 101.0.4951.61
engine: Blink
engine_version: 101.0.4951.61
device:
type: tv
brand: Grünberg
model: GR32200
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 13; GR43200 Build/TP1A.220905.004.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/101.0.4951.61 Safari/537.36
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: Chrome Webview
version: 101.0.4951.61
engine: Blink
engine_version: 101.0.4951.61
device:
type: tv
brand: Grünberg
model: GR43200
os_family: Android
browser_family: Chrome
6 changes: 6 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9998,6 +9998,12 @@ Graetz:
device: 'tv'
model: ''

# Grünberg
Grünberg:
regex: '(GR(?:32200|43200))(?:[);/ ]|$)'
device: 'tv'
model: '$1'

# Grundig
Grundig:
regex: 'GR?-TB[0-9]+[a-z]*|(?<!Arcelik )GRUNDIG|portalmmm/2\.0 G|AFTEU(?:011|014|FF014)'
Expand Down

0 comments on commit dcdb0d7

Please sign in to comment.